aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/test')
-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