aboutsummaryrefslogtreecommitdiff
path: root/unit-tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-10-24 14:55:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:35 +0200
commitaa79de0b9a1e214e923139c25b02b5313a6305a9 (patch)
tree3104cdb7f0d4008c443df43beaf70aebeb8e7ec4 /unit-tests
parent0f7ecf29943c9d8112fff923d93eeadb99a816f3 (diff)
Implement creation/cleanup of testscript root working directory
Diffstat (limited to 'unit-tests')
-rw-r--r--unit-tests/test/script/parser/driver.cxx2
-rw-r--r--unit-tests/test/script/parser/scope.test4
2 files changed, 3 insertions, 3 deletions
diff --git a/unit-tests/test/script/parser/driver.cxx b/unit-tests/test/script/parser/driver.cxx
index 09fd6f5..4fd0489 100644
--- a/unit-tests/test/script/parser/driver.cxx
+++ b/unit-tests/test/script/parser/driver.cxx
@@ -120,7 +120,7 @@ namespace build2
// Parse and run.
//
- script s (tt, st);
+ script s (tt, st, dir_path (work) /= "test-driver");
print_runner r (scope);
parser p;
diff --git a/unit-tests/test/script/parser/scope.test b/unit-tests/test/script/parser/scope.test
index 7749b3d..4e358f3 100644
--- a/unit-tests/test/script/parser/scope.test
+++ b/unit-tests/test/script/parser/scope.test
@@ -2,12 +2,12 @@ $* testscript <'cmd $@' >"cmd 1" # id-testscript
$* foo.test <'cmd $@' >"cmd foo/1" # id
wd = [dir_path] $~;
-wd += test;
+wd += test-driver;
wd += 1;
$* testscript <'cmd $~' >"cmd $wd" # wd-testscript
wd = [dir_path] $~;
-wd += test;
+wd += test-driver;
wd += foo;
wd += 1;
$* foo.test <'cmd $~' >"cmd $wd" # wd