apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1516261 - /apr/apr/trunk/test/abts.c
Date Wed, 21 Aug 2013 19:06:37 GMT
Author: trawick
Date: Wed Aug 21 19:06:37 2013
New Revision: 1516261

URL: http://svn.apache.org/r1516261
Log:
support Windows-style paths when checking for absolute paths
(e.g., cmake-based out of tree build)

Modified:
    apr/apr/trunk/test/abts.c

Modified: apr/apr/trunk/test/abts.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/abts.c?rev=1516261&r1=1516260&r2=1516261&view=diff
==============================================================================
--- apr/apr/trunk/test/abts.c (original)
+++ apr/apr/trunk/test/abts.c Wed Aug 21 19:06:37 2013
@@ -106,6 +106,9 @@ abts_suite *abts_add_suite(abts_suite *s
     /* suite_name_full may be an absolute path depending on __FILE__ 
      * expansion */
     suite_name = strrchr(suite_name_full, '/');
+    if (!suite_name) {
+        suite_name = strrchr(suite_name_full, '\\');
+    }
     if (suite_name) {
         suite_name++;
     } else {



Mime
View raw message