Browse Source

Put the chdir back, to simplify testing now that scandir
doesn't segfault anymore

Eric Andersen 22 years ago
parent
commit
e78250dbf6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      test/stdlib/qsort.c

+ 1 - 0
test/stdlib/qsort.c

@@ -19,6 +19,7 @@ int main(void)
 
     int i, numdir;        
 
+    chdir("/");
     numdir = scandir(".", &array, select_files, NULL);
     printf("\nGot %d entries from scandir().\n", numdir);              
     for (i = 0; i < numdir; ++i) {