Windows portability in the expected output.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Fri, 19 Sep 2008 15:46:55 +0000 (15:46 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Fri, 19 Sep 2008 15:46:55 +0000 (15:46 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3437 fdb21ef1-2011-0410-befe-b5e4ea1792b1

test/Glob/glob-libpath.py

index 37449e8214738d5f9406381a6ce49a34b11f4816..fb16fca0ead8af1bc7d0c2db3a434cc6bd906182 100644 (file)
@@ -77,11 +77,11 @@ test.write(['src', 'util', 'util.cpp'], """int i=0;
 """)
 
 test.run(arguments = '-Q .')
-if not test.match_re_dotall(test.stdout(), r".*-Lbuild/util.*"):
-    print repr(test.stdout())+" should contain -Lbuild/util"
+if not test.match_re_dotall(test.stdout(), r".*(-L|/LIBPATH:)build[/\\]util.*"):
+    print repr(test.stdout())+" should contain -Lbuild/util or /LIBPATH:build\\util"
     test.fail_test()
-if test.match_re_dotall(test.stdout(), r".*-Lsrc/util.*"):
-    print repr(test.stdout())+" should not contain -Lsrc/util"
+if test.match_re_dotall(test.stdout(), r".*(-L|/LIBPATH:)src[/\\]util.*"):
+    print repr(test.stdout())+" should not contain -Lsrc/util or /LIBPATH:src\\util"
     test.fail_test()
 
 test.pass_test()