def METHOD_NAME():
    """
      Regression test: glob excludes used to be broken when building from a
    subdirectory.
    """
    t = BoostBuild.Tester(use_test_config=False)
    t.write("jamroot.jam", "build-project p ;")
    t.write("p/p.c", "int main() {}\n")
    t.write("p/p_x.c", "very bad non-compilable file\n")
    t.write("p/jamfile.jam", "exe p : [ glob *.c : p_x.c ] ;")
    t.run_build_system(subdir="p")
    t.expect_addition("p/bin/$toolset/debug*/p.exe")
    t.cleanup()