Boost logo

Boost-Commit :

From: roland.schwarz_at_[hidden]
Date: 2008-04-18 14:11:03


Author: speedsnail
Date: 2008-04-18 14:11:03 EDT (Fri, 18 Apr 2008)
New Revision: 44551
URL: http://svn.boost.org/trac/boost/changeset/44551

Log:
relaxed test, ignoring case of drive letter.
Thanks to Mat Marcus for the fix.
Text files modified:
   trunk/tools/jam/src/expand.c | 7 ++++++-
   1 files changed, 6 insertions(+), 1 deletions(-)

Modified: trunk/tools/jam/src/expand.c
==============================================================================
--- trunk/tools/jam/src/expand.c (original)
+++ trunk/tools/jam/src/expand.c 2008-04-18 14:11:03 EDT (Fri, 18 Apr 2008)
@@ -749,7 +749,12 @@
     assert(l != 0);
     assert(list_next(l) == 0);
     # ifdef OS_CYGWIN
- assert( !strcmp( l->string, "c:\\foo\\bar" ) );
+ /* On some installations of cygwin the drive letter is expanded to other case. */
+ /* This has been reported to be the case if cygwin has been installed to C:\ */
+ /* as opposed to C:\cygwin */
+ /* Since case of the drive letter will not matter, we allow for both. */
+ assert( 0 == strcmp( l->string, "c:\\foo\\bar" )
+ || 0 == strcmp( l->string, "C:\\foo\\bar") );
     # else
     assert( !strcmp( l->string, cygpath ) );
     # endif


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