diff options
Diffstat (limited to 'build2/test')
-rw-r--r-- | build2/test/rule.cxx | 3 | ||||
-rw-r--r-- | build2/test/script/builtin.cxx | 3 | ||||
-rw-r--r-- | build2/test/script/parser.cxx | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/build2/test/rule.cxx b/build2/test/rule.cxx index 25eb0b8..8e39104 100644 --- a/build2/test/rule.cxx +++ b/build2/test/rule.cxx @@ -399,7 +399,8 @@ namespace build2 } catch (const std::exception& e) { - *diag_stream << "unhandled exception: " << e; + diag_lock l; + *diag_stream << "unhandled exception: " << e << endl; assert (false); abort (); } diff --git a/build2/test/script/builtin.cxx b/build2/test/script/builtin.cxx index d96058e..9bd6a1b 100644 --- a/build2/test/script/builtin.cxx +++ b/build2/test/script/builtin.cxx @@ -1361,7 +1361,8 @@ namespace build2 } catch (const std::exception& e) { - *diag_stream << "unhandled exception: " << e; + diag_lock l; + *diag_stream << "unhandled exception: " << e << endl; assert (false); abort (); } diff --git a/build2/test/script/parser.cxx b/build2/test/script/parser.cxx index 0555f2f..d6d77fe 100644 --- a/build2/test/script/parser.cxx +++ b/build2/test/script/parser.cxx @@ -2881,7 +2881,8 @@ namespace build2 } catch (const std::exception& e) { - *diag_stream << "unhandled exception: " << e; + diag_lock l; + *diag_stream << "unhandled exception: " << e << endl; assert (false); abort (); } |