diff options
author | William Deegan <bill@baddogconsulting.com> | 2018-03-24 21:23:50 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2018-03-24 21:23:50 (GMT) |
commit | b42fd7c0e76ca252ce778e5258be1e770561704d (patch) | |
tree | a913c0321ae7c0edeacf5d9732e8a5341ef31b7f /test/MSVC | |
parent | 0458fbeaddae9f4bb1e977ccd642a201c7b46c5f (diff) | |
download | SCons-b42fd7c0e76ca252ce778e5258be1e770561704d.zip SCons-b42fd7c0e76ca252ce778e5258be1e770561704d.tar.gz SCons-b42fd7c0e76ca252ce778e5258be1e770561704d.tar.bz2 |
Fix test so use os.sep instead of hardcoded backslash for MSVC_BATCH=true /Fo argument
Diffstat (limited to 'test/MSVC')
-rw-r--r-- | test/MSVC/batch.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/MSVC/batch.py b/test/MSVC/batch.py index af5b43e..0d3063f 100644 --- a/test/MSVC/batch.py +++ b/test/MSVC/batch.py @@ -32,6 +32,7 @@ explicit suffix settings so that the test should work when run on any platform. """ +import os import TestSCons test = TestSCons.TestSCons() @@ -97,8 +98,8 @@ test.run(arguments = 'MSVC_BATCH=1 .') test.must_match('prog.exe', "prog.c\nf1.c\nf2.c\n", mode='r') test.must_match('fake_cl.log', """\ -/Fo.\\ prog.c f1.c f2.c -""", mode='r') +/Fo.%s prog.c f1.c f2.c +"""%os.sep, mode='r') test.up_to_date(options = 'MSVC_BATCH=1', arguments = '.') @@ -110,9 +111,9 @@ test.run(arguments = 'MSVC_BATCH=1 .') test.must_match('prog.exe', "prog.c\nf1.c 2\nf2.c\n", mode='r') test.must_match('fake_cl.log', """\ -/Fo.\\ prog.c f1.c f2.c -/Fo.\\ f1.c -""", mode='r') +/Fo.%s prog.c f1.c f2.c +/Fo.%s f1.c +"""%(os.sep, os.sep), mode='r') test.up_to_date(options = 'MSVC_BATCH=1', arguments = '.') |