Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80095 - trunk/tools/build/v2/test
From: jurko.gospodnetic_at_[hidden]
Date: 2012-08-20 09:07:10


Author: jurko
Date: 2012-08-20 09:07:09 EDT (Mon, 20 Aug 2012)
New Revision: 80095
URL: http://svn.boost.org/trac/boost/changeset/80095

Log:
Corrected Boost Build's internal project_id.py test to pass on Cygwin. Added related FIXME comments to make the test more detailed on Cygwin in the future.
Text files modified:
   trunk/tools/build/v2/test/project_id.py | 15 ++++++++++-----
   1 files changed, 10 insertions(+), 5 deletions(-)

Modified: trunk/tools/build/v2/test/project_id.py
==============================================================================
--- trunk/tools/build/v2/test/project_id.py (original)
+++ trunk/tools/build/v2/test/project_id.py 2012-08-20 09:07:09 EDT (Mon, 20 Aug 2012)
@@ -182,15 +182,19 @@
 """)
     t.run_build_system()
 
- t.write("a/fOo bAr/b/jamfile.jam", "")
- t.write("jamroot.jam", r"""
+ # On Windows we have a case-insensitive file system and we can use
+ # backslashes as path separators.
+ # FIXME: Make a similar test pass on Cygwin.
+ if sys.platform in ['win32']:
+ t.write("a/fOo bAr/b/jamfile.jam", "")
+ t.write("jamroot.jam", r"""
 use-project bar : "a/foo bar/b" ;
 use-project bar : "a/foO Bar/b" ;
 use-project bar : "a/foo BAR/b/" ;
 use-project bar : "a\\.\\FOO bar\\b\\" ;
 """)
- t.run_build_system()
- t.rm("a")
+ t.run_build_system()
+ t.rm("a")
 
     t.write("bar/jamfile.jam", "")
     t.write("jamroot.jam", """\
@@ -219,7 +223,8 @@
 
     # On Windows we have a case-insensitive file system and we can use
     # backslashes as path separators.
- if sys.platform in ['cygwin', 'win32']:
+ # FIXME: Make a similar test pass on Cygwin.
+ if sys.platform in ['win32']:
         t.write("baR/jamfile.jam", "")
         t.write("jamroot.jam", r"""
 use-project bar : bar ;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk