aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2014-06-05 11:20:20 +0200
committerJoerg Bornemann <joerg.bornemann@digia.com>2014-06-10 11:47:48 +0200
commita52f265fcd70b51acc15b0fc5000014f1b1fed29 (patch)
tree2dcc91c295b676a873cbaf8099dea12b11843086 /tests/auto/blackbox/testdata
parent026cc4bead2e982966990221e5a84068799c13bd (diff)
yield error if Command.workingDirectory doesn't exist
Otherwise some command might clutter the user's current working dir. Task-number: QBS-607 Change-Id: Id263481d1a615b9c66753e11b271441d4bd004b1 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'tests/auto/blackbox/testdata')
-rw-r--r--tests/auto/blackbox/testdata/erroneous/nonexistentWorkingDir/project.qbs18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/erroneous/nonexistentWorkingDir/project.qbs b/tests/auto/blackbox/testdata/erroneous/nonexistentWorkingDir/project.qbs
new file mode 100644
index 000000000..db0b0d607
--- /dev/null
+++ b/tests/auto/blackbox/testdata/erroneous/nonexistentWorkingDir/project.qbs
@@ -0,0 +1,18 @@
+import qbs
+
+Application {
+ name: "kaputt"
+ Transformer {
+ Artifact {
+ fileName: "Stulle"
+ fileTags: ["nutritious"]
+ }
+ prepare: {
+ var cmd = new Command("ls");
+ cmd.workingDirectory = "/does/not/exist";
+ cmd.silent = true;
+ return [cmd];
+ }
+ }
+}
+