apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: apr/test abts.c
Date Fri, 04 Jun 2004 11:29:03 GMT
jorton      2004/06/04 04:29:03

  Modified:    test     abts.c
  Log:
  * test/abts.c (abts_add_suite): Fix for non-absolute __FILE__
  expansion; NULL + 1 != NULL.
  
  Revision  Changes    Path
  1.10      +5 -3      apr/test/abts.c
  
  Index: abts.c
  ===================================================================
  RCS file: /home/cvs/apr/test/abts.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -d -w -u -r1.9 -r1.10
  --- abts.c	4 Jun 2004 08:44:15 -0000	1.9
  +++ abts.c	4 Jun 2004 11:29:03 -0000	1.10
  @@ -101,9 +101,11 @@
       subsuite->num_test = 0;
       subsuite->failed = 0;
       subsuite->next = NULL;
  -    /* suite_name_full is the complete path of the source code; strip out. */
  -    suite_name = strrchr(suite_name_full, '/') + 1;
  -    if (!suite_name) {
  +    /* suite_name_full may be an absolute path depending on __FILE__ expansion */
  +    suite_name = strrchr(suite_name_full, '/');
  +    if (suite_name) {
  +        suite_name++;
  +    } else {
           suite_name = suite_name_full;
       }
       p = strrchr(suite_name, '.');
  
  
  

Mime
View raw message