diff options
Diffstat (limited to 'unit-tests/function/driver.cxx')
-rw-r--r-- | unit-tests/function/driver.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unit-tests/function/driver.cxx b/unit-tests/function/driver.cxx index 192b954..6677c24 100644 --- a/unit-tests/function/driver.cxx +++ b/unit-tests/function/driver.cxx @@ -30,7 +30,7 @@ namespace build2 function_family f ("dummy"); - f["fail"] = []() {error << "failed"; throw failed ();}; + f["fail"] = []() {fail << "failed" << endf;}; f["fail_arg"] = [](names a) {return convert<uint64_t> (move (a[0]));}; f["null"] = [](names* a) {return a == nullptr;}; |