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

fifo tests, chdir to it.
This commit is contained in:
Robert Watson 2005-09-11 17:41:32 +00:00
parent df54be7080
commit 544cf87d83
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149998

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();