After going to some trouble to create a temporary directory in which to run

fifo tests, chdir to it.
This commit is contained in:
rwatson 2005-09-11 17:41:32 +00:00
parent cc33905d69
commit 42860f374b

View File

@ -462,6 +462,8 @@ main(int argc, char *argv[])
strcpy(temp_dir, "/tmp/fifo_create.XXXXXXXXXXX");
if (mkdtemp(temp_dir) == NULL)
err(-1, "mkdtemp");
if (chdir(temp_dir) < 0)
err(-1, "chdir: %s", temp_dir);
atexit(atexit_temp_dir);
test_non_blocking_reader();