Ignore:
Timestamp:
Jun 27, 2005, 5:05:29 AM (20 years ago)
Author:
bird
Message:

testcase adjustments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libctests/glibc/stdlib/test-canon.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r2088 r2089  
    112112            && strcmp (result + cwd_len, expected + 1) == 0);
    113113  else
    114     good = (strcmp (expected, result) == 0);
     114    {
     115      good = (strcmp (expected, result) == 0);
     116#ifdef __EMX__
     117      if (!good && expected[0] == '/' && result[1] == ':' && result[2] == '/')
     118        good = (strcmp (expected, result + 2) == 0);
     119#endif
     120    }
    115121
    116122  return good;
     
    158164    symlink (symlinks[i].value, symlinks[i].name);
    159165
     166  int rmdir_etc = mkdir ("/etc", 0777) == 0;
     167
    160168  int has_dir = mkdir ("doesExist", 0777) == 0;
    161169
     
    213221    }
    214222
     223#ifdef __EMX__
     224  if (fd >= 0) /* cannot unlink open files */
     225    close (fd);
     226#endif
    215227  if (fd >= 0)
    216228    unlink ("doesExist/someFile");
     
    218230  if (has_dir)
    219231    rmdir ("doesExist");
     232
     233  if (rmdir_etc)
     234    rmdir ("/etc");
    220235
    221236  for (i = 0; i < (int) (sizeof (symlinks) / sizeof (symlinks[0])); ++i)
Note: See TracChangeset for help on using the changeset viewer.