From e78250dbf6b010681e3492688b0fdbcf31f6371d Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 21 Mar 2002 09:52:53 +0000 Subject: Put the chdir back, to simplify testing now that scandir doesn't segfault anymore --- test/stdlib/qsort.c | 1 + 1 file changed, 1 insertion(+) (limited to 'test') 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) { -- cgit v1.2.3