summaryrefslogtreecommitdiffstats
path: root/tests/auto/qprocess/testProcessSpacesArgs
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-07-06 11:56:38 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-07-06 12:10:47 (GMT)
commit4fe7291edcac2688f042a11ff5c23374c6c0375d (patch)
tree5875dabdc06b69b3d089e030348fa5e6c45336c2 /tests/auto/qprocess/testProcessSpacesArgs
parent92b6ca830f279cfa9d37946f1fd72843b24e704b (diff)
downloadQt-4fe7291edcac2688f042a11ff5c23374c6c0375d.zip
Qt-4fe7291edcac2688f042a11ff5c23374c6c0375d.tar.gz
Qt-4fe7291edcac2688f042a11ff5c23374c6c0375d.tar.bz2
add setNativeArguments() and nativeArguments()
this function enables starting subprocesses which need command lines which cannot be constructed via the portable list-based api. such cases would be programs which need quoting rules which diverge from the msvc runtime. Reviewed-by: joerg Task-number: QTBUG-7620 (and various others which boil down to that)
Diffstat (limited to 'tests/auto/qprocess/testProcessSpacesArgs')
-rw-r--r--tests/auto/qprocess/testProcessSpacesArgs/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/qprocess/testProcessSpacesArgs/main.cpp b/tests/auto/qprocess/testProcessSpacesArgs/main.cpp
index d842934..ae5d3ae 100644
--- a/tests/auto/qprocess/testProcessSpacesArgs/main.cpp
+++ b/tests/auto/qprocess/testProcessSpacesArgs/main.cpp
@@ -44,9 +44,14 @@
int main(int argc, char ** argv)
{
-#if defined(__SYMBIAN32__)
+#if defined(__SYMBIAN32__) || defined(WINCE) || defined(_WIN32_WCE)
+# if defined(__SYMBIAN32__)
// Printing to stdout messes up the out.txt, so open a file and print there.
FILE* file = fopen("c:\\logs\\qprocess_args_test.txt","w+");
+# else
+ // No pipes on this "OS"
+ FILE* file = fopen("\\temp\\qprocess_args_test.txt","w+");
+# endif
for (int i = 0; i < argc; ++i) {
if (i)
fprintf(file, "|");