diff options
Diffstat (limited to 'tools/build/v2/test/load_order.py')
-rw-r--r-- | tools/build/v2/test/load_order.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/build/v2/test/load_order.py b/tools/build/v2/test/load_order.py index 34ceaaf448..183bf2440b 100644 --- a/tools/build/v2/test/load_order.py +++ b/tools/build/v2/test/load_order.py @@ -61,4 +61,28 @@ int main() {} t.run_build_system(subdir="src/app") t.expect_addition("src/app/bin/$toolset/debug/test.exe") +# child/child2 used to be loaded before child +t.rm(".") +t.write("jamroot.jam", """ +use-project /child/child2 : child/child2 ; +rule parent-rule ( ) +{ + ECHO "Running parent-rule" ; +} +""") + +t.write("child/jamfile.jam", """ +""") + +t.write("child/child1/jamfile.jam", """ +""") + +t.write("child/child2/jamfile.jam", """ +parent-rule ; +""") + + +t.run_build_system(subdir="child/child1") +t.expect_output_line("Running parent-rule") + t.cleanup() |