code: def test_directory_names_in_glob_tree():
      """Test that directory names in patterns for 'glob-tree' are rejected."""
  
      t = BoostBuild.Tester(use_test_config=False)
  
      t.write("jamroot.jam", "")
      t.write("d1/src/a.cpp", "very bad non-compilable file\n")
      t.write("d1/src/foo/a.cpp", "void bar(); int main() { bar(); }\n")
      t.write("d1/src/bar/b.cpp", "void bar() {}\n")
      t.write("d1/src/bar/bad.cpp", "very bad non-compilable file\n")
      t.write(
          "d1/jamfile.jam",
          """\
  project : source-location src ;
  exe a : [ glob-tree foo/*.cpp bar/*.cpp : bad* ] ../d2/d//l ;
  """,
      )
      t.write(
          "d2/d/l.cpp",
          """\
  #if defined(_WIN32)
  __declspec(dllexport)
  void force_import_lib_creation() {}
  #endif
  """,
      )
      t.write("d2/d/jamfile.jam", "lib l : [ glob *.cpp ] ;")
  
      t.run_build_system(subdir="d1", status=1)
      t.expect_output_lines(
          "error: The patterns * may not include directory"
      )
  
      t.cleanup()
  
imports: import BoostBuild
label_desc: Use image node_id 5 for calling a global function with example usage: test_directory_names_in_glob_tree() without return types