forked from bfgroup/b2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure b2 exits immediately on syntax errors (#540)
Add test verifying Jam syntax error results in non-zero exit status. Refines #538 Fixes #539
- Loading branch information
Showing
3 changed files
with
47 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/python | ||
|
||
# Copyright (C) Mateusz Loskot 2020. | ||
# Distributed under the Boost Software License, Version 1.0. (See | ||
# accompanying file LICENSE_1_0.txt or copy at | ||
# http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
# Test that Jam syntax error results in non-zero exit status | ||
|
||
import BoostBuild | ||
|
||
# Create a temporary working directory. | ||
t = BoostBuild.Tester() | ||
|
||
# Create the needed files. | ||
t.write("jamroot.jam", """ | ||
exe hello : hello.cpp | ||
""") | ||
|
||
t.run_build_system(status=1) | ||
|
||
t.cleanup() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters