aboutsummaryrefslogtreecommitdiff
path: root/unit-tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-11-21 15:14:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-21 15:14:07 +0200
commitfae6cd2235c907e077dad7b5d8dc9b6d90a78a37 (patch)
tree363010dda8c55b4c92ad0486c109e554db282f19 /unit-tests
parent71dec1fe08fd40b599028fbbafb39e0661aeafff (diff)
Change build.driver/path variable to build.path/process_path
Diffstat (limited to 'unit-tests')
-rw-r--r--unit-tests/function/driver.cxx8
-rw-r--r--unit-tests/test/script/parser/driver.cxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/unit-tests/function/driver.cxx b/unit-tests/function/driver.cxx
index 0708cea..192b954 100644
--- a/unit-tests/function/driver.cxx
+++ b/unit-tests/function/driver.cxx
@@ -23,9 +23,9 @@ namespace build2
};
int
- main ()
+ main (int, char* argv[])
{
- init ("false", 1); // No build system driver, default verbosity.
+ init (argv[0], 1); // Fake build system driver, default verbosity.
reset (strings ()); // No command line variables.
function_family f ("dummy");
@@ -106,7 +106,7 @@ namespace build2
}
int
-main ()
+main (int argc, char* argv[])
{
- return build2::main ();
+ return build2::main (argc, argv);
}
diff --git a/unit-tests/test/script/parser/driver.cxx b/unit-tests/test/script/parser/driver.cxx
index 0fcba38..83160cb 100644
--- a/unit-tests/test/script/parser/driver.cxx
+++ b/unit-tests/test/script/parser/driver.cxx
@@ -135,7 +135,7 @@ namespace build2
{
tracer trace ("main");
- init ("false", 1); // No build system driver, default verbosity.
+ init (argv[0], 1); // Fake build system driver, default verbosity.
reset (strings ()); // No command line variables.
bool scope (false);