aboutsummaryrefslogtreecommitdiff
path: root/unit-tests
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests')
-rw-r--r--unit-tests/test/script/parser/driver.cxx17
1 files changed, 12 insertions, 5 deletions
diff --git a/unit-tests/test/script/parser/driver.cxx b/unit-tests/test/script/parser/driver.cxx
index 0fc0585..e167505 100644
--- a/unit-tests/test/script/parser/driver.cxx
+++ b/unit-tests/test/script/parser/driver.cxx
@@ -34,6 +34,12 @@ namespace build2
print_runner (bool scope, bool id, bool line)
: scope_ (scope), id_ (id), line_ (line) {}
+ virtual bool
+ test (scope&) const override
+ {
+ return true;
+ }
+
virtual void
enter (scope& s, const location&) override
{
@@ -184,11 +190,12 @@ namespace build2
trace));
testscript& st (
- targets.insert<testscript> (work,
- dir_path (),
- "testscript",
- &extension_pool.find (""),
- trace));
+ targets.insert<testscript> (
+ work,
+ dir_path (),
+ name.leaf ().base ().string (),
+ &extension_pool.find (name.leaf ().extension ()),
+ trace));
tt.path (path ("driver"));
st.path (name);