MCPcopy Create free account
hub / github.com/boostorg/build / test_exit

Function test_exit

v2/test/builtin_exit.py:11–38  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

9import BoostBuild
10
11def test_exit(name):
12 t = BoostBuild.Tester(["-ffile.jam"], pass_toolset=0)
13
14 t.write("file.jam", "%s ;" % name)
15 t.run_build_system(status=1, stdout="\n")
16 t.rm(".")
17
18 t.write("file.jam", "%s : 0 ;" % name)
19 t.run_build_system(stdout="\n")
20 t.rm(".")
21
22 t.write("file.jam", "%s : 1 ;" % name)
23 t.run_build_system(status=1, stdout="\n")
24 t.rm(".")
25
26 t.write("file.jam", "%s : 2 ;" % name)
27 t.run_build_system(status=2, stdout="\n")
28 t.rm(".")
29
30 t.write("file.jam", "%s a message ;" % name)
31 t.run_build_system(status=1, stdout="a message\n")
32 t.rm(".")
33
34 t.write("file.jam", "%s a message : 0 ;" % name)
35 t.run_build_system(stdout="a message\n")
36 t.rm(".")
37
38 t.cleanup()
39
40test_exit("EXIT")
41test_exit("Exit")

Callers 1

builtin_exit.pyFile · 0.85

Calls 4

writeMethod · 0.95
run_build_systemMethod · 0.95
rmMethod · 0.95
cleanupMethod · 0.95

Tested by

no test coverage detected