diff ui/tests/cinstprocesstest.cpp @ 439:c88090a15ae4

Fix cinstprocesstest for new arguments. Handle errno on write errors
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 22 Apr 2014 13:27:23 +0000
parents 17e1c8f37d72
children f89b41fa7048
line wrap: on
line diff
--- a/ui/tests/cinstprocesstest.cpp	Tue Apr 22 13:00:15 2014 +0000
+++ b/ui/tests/cinstprocesstest.cpp	Tue Apr 22 13:27:23 2014 +0000
@@ -69,7 +69,7 @@
     }
     instructions.close();
 
-    args << "instructions=" + instructions.fileName();
+    args << "choices=" + instructions.fileName();
 
     QProcess* installerProcess = startCinstProcess(args);
     finishVerify(installerProcess, ERR_NO_ERROR);
@@ -137,7 +137,7 @@
     }
     instructions.close();
 
-    args << "instructions=" + instructions.fileName();
+    args << "choices=" + instructions.fileName();
 
     QProcess* installerProcess = startCinstProcess(args);
     finishVerify(installerProcess, ERR_INVALID_INPUT_NO_LIST);
@@ -157,7 +157,7 @@
     }
     instructions.close();
 
-    args << "instructions=" + instructions.fileName();
+    args << "choices=" + instructions.fileName();
 
     QProcess* installerProcess = startCinstProcess(args);
     /* If the following failed there may be leftovers in /tmp */
@@ -168,7 +168,7 @@
 void CinstProcessTest::testNoInput() {
     QStringList args;
     args << "list=foobazbuf";
-    args << "instructions=bazbuffoo";
+    args << "choices=bazbuffoo";
     QProcess* installerProcess;
     installerProcess = startCinstProcess(args);
     finishVerify(installerProcess, ERR_INVALID_INPUT_NO_LIST);
@@ -183,7 +183,7 @@
 
     QStringList args;
     args << "list=" + validListFile.fileName();
-    args << "instructions=" + emptyFile.fileName();
+    args << "choices=" + emptyFile.fileName();
 
     QProcess* installerProcess = startCinstProcess(args);
     finishVerify(installerProcess, ERR_NO_INSTRUCTIONS);
@@ -202,7 +202,7 @@
     instructions.write("I:ABCDEF\n");
     instructions.close();
 
-    args << "instructions=" + instructions.fileName();
+    args << "choices=" + instructions.fileName();
 
     QProcess* installerProcess = startCinstProcess(args);
 
@@ -212,7 +212,7 @@
 void CinstProcessTest::testUninstall() {
     QStringList args;
     args << "list=" + validListFile.fileName();
-    args << "instructions=uninstall";
+    args << "choices=uninstall";
 
     QProcess* installerProcess = startCinstProcess(args);
 

http://wald.intevation.org/projects/trustbridge/