After going to some trouble to create a temporary directory in which to run
fifo tests, chdir to it.
This commit is contained in:
parent
cc33905d69
commit
42860f374b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user