Skip to content

Commit

Permalink
Added a regression test for searched lib targets (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Cooke committed Jul 29, 2020
1 parent b6b7007 commit 398f585
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/searched_lib.py
Expand Up @@ -163,6 +163,22 @@
t.run_build_system(["-n"])


# A regression test. Virtual targets distinguished by their search paths were
# not differentiated when registered, which caused search paths to be selected
# incorrectly for build requests with multiple feature values.
t.write("jamroot.jam", "")
t.write("a.cpp", "")
t.write("jamfile.jam", """\
exe a : a.cpp l ;
lib l : : <name>l <search>lib32 <address-model>32 ;
lib l : : <name>l <search>lib64 <address-model>64 ;
""")

t.run_build_system(["-n","address-model=32,64"])
t.fail_test(t.stdout().find("lib32") == -1)
t.fail_test(t.stdout().find("lib64") == -1)


# Make sure plain "lib foobar ; " works.
t.write("jamfile.jam", """\
exe a : a.cpp foobar ;
Expand Down

0 comments on commit 398f585

Please sign in to comment.