diff options
Diffstat (limited to 'tests/auto/qprocess/testProcessOutput/main.cpp')
-rw-r--r-- | tests/auto/qprocess/testProcessOutput/main.cpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/tests/auto/qprocess/testProcessOutput/main.cpp b/tests/auto/qprocess/testProcessOutput/main.cpp index 960f970..f8fa6e4 100644 --- a/tests/auto/qprocess/testProcessOutput/main.cpp +++ b/tests/auto/qprocess/testProcessOutput/main.cpp @@ -44,13 +44,23 @@ int main() { -#ifndef _WIN32_WCE - for (int i=0; i<10240; i++) { -#else //fprintf Output is very slow on Windows CE +#if defined(__SYMBIAN32__) + // Printing to stdout messes up the out.txt, so open a file and print there. + FILE* file = fopen("c:\\logs\\qprocess_output_test.txt","w+"); + for (int i=0; i<200; i++) { + fprintf(file, "%d -this is a number\n", i); + fflush(file); + } + fclose(file); +#else +# if defined(_WIN32_WCE) for (int i=0; i<240; i++) { -#endif +# else //fprintf Output is very slow on Windows CE/Symbian + for (int i=0; i<10240; i++) { +# endif fprintf(stdout, "%d -this is a number\n", i); fflush(stderr); } +#endif return 0; } |