summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-03-21 09:52:53 +0000
committerEric Andersen <andersen@codepoet.org>2002-03-21 09:52:53 +0000
commite78250dbf6b010681e3492688b0fdbcf31f6371d (patch)
tree52c9e16e98260f911eeb1147317dd88f978ae553
parent7c574d35f195d268bc651a38652503df92fd1263 (diff)
Put the chdir back, to simplify testing now that scandir
doesn't segfault anymore
-rw-r--r--test/stdlib/qsort.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/stdlib/qsort.c b/test/stdlib/qsort.c
index ac3053d3f..9e706c78d 100644
--- a/test/stdlib/qsort.c
+++ b/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) {