aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/libbuild2/buildfile3
-rw-r--r--tests/libbuild2/driver.cxx5
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/libbuild2/buildfile b/tests/libbuild2/buildfile
index 4d3a42f..51b2f5b 100644
--- a/tests/libbuild2/buildfile
+++ b/tests/libbuild2/buildfile
@@ -2,7 +2,8 @@
# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
-import libs = build2%lib{build2}
+import libs = build2%lib{build2}
+import libs += build2%lib{build2-in}
exe{driver}: {hxx cxx}{*} $libs testscript
diff --git a/tests/libbuild2/driver.cxx b/tests/libbuild2/driver.cxx
index 3df2fbe..d9c086a 100644
--- a/tests/libbuild2/driver.cxx
+++ b/tests/libbuild2/driver.cxx
@@ -8,6 +8,8 @@
#include <libbuild2/context.hxx> // sched, reset()
#include <libbuild2/scheduler.hxx>
+#include <libbuild2/in/init.hxx>
+
using namespace build2;
int
@@ -17,6 +19,9 @@ main (int, char* argv[])
//
init_diag (1);
init (argv[0]);
+
+ in::build2_in_load ();
+
sched.startup (1); // Serial execution.
reset (strings ()); // No command line variables.