diff --git a/test/conditionals.py b/test/conditionals.py index 3d85f1b3e..f1e7824fd 100644 --- a/test/conditionals.py +++ b/test/conditionals.py @@ -2,7 +2,7 @@ # Test conditional properties -from BoostBuild import Tester, List +from BoostBuild import Tester, List, exe_suffix import os from string import strip @@ -16,13 +16,13 @@ int main() {} """) t.write("Jamfile", "exe a : a.cpp : static:STATIC ;") t.run_build_system("link=static") -t.expect_addition("bin/gcc/debug/link-static/main-target-a/a") +t.expect_addition("bin/gcc/debug/link-static/main-target-a/a" + exe_suffix) t.write("Jamfile", """ project : requirements static:STATIC ; exe a : a.cpp ; """) t.run_build_system("link=static") -t.expect_addition("bin/gcc/debug/link-static/a") +t.expect_addition("bin/gcc/debug/link-static/a" + exe_suffix) t.cleanup() diff --git a/v2/test/conditionals.py b/v2/test/conditionals.py index 3d85f1b3e..f1e7824fd 100644 --- a/v2/test/conditionals.py +++ b/v2/test/conditionals.py @@ -2,7 +2,7 @@ # Test conditional properties -from BoostBuild import Tester, List +from BoostBuild import Tester, List, exe_suffix import os from string import strip @@ -16,13 +16,13 @@ int main() {} """) t.write("Jamfile", "exe a : a.cpp : static:STATIC ;") t.run_build_system("link=static") -t.expect_addition("bin/gcc/debug/link-static/main-target-a/a") +t.expect_addition("bin/gcc/debug/link-static/main-target-a/a" + exe_suffix) t.write("Jamfile", """ project : requirements static:STATIC ; exe a : a.cpp ; """) t.run_build_system("link=static") -t.expect_addition("bin/gcc/debug/link-static/a") +t.expect_addition("bin/gcc/debug/link-static/a" + exe_suffix) t.cleanup()