aboutsummaryrefslogtreecommitdiff
path: root/unit-tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-11-22 12:10:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-22 12:10:03 +0200
commit557269660c1d9796a7cf9e911efb9262f645e359 (patch)
tree0323bcb5a90c339fe87fcd193cf71bdcb3431c91 /unit-tests
parentfae6cd2235c907e077dad7b5d8dc9b6d90a78a37 (diff)
Use diagnostics facility from libbutl
Diffstat (limited to 'unit-tests')
-rw-r--r--unit-tests/function/driver.cxx2
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;};