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
df54be7080
commit
544cf87d83
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149998
@ -462,6 +462,8 @@ main(int argc, char *argv[])
|
|||||||
strcpy(temp_dir, "/tmp/fifo_create.XXXXXXXXXXX");
|
strcpy(temp_dir, "/tmp/fifo_create.XXXXXXXXXXX");
|
||||||
if (mkdtemp(temp_dir) == NULL)
|
if (mkdtemp(temp_dir) == NULL)
|
||||||
err(-1, "mkdtemp");
|
err(-1, "mkdtemp");
|
||||||
|
if (chdir(temp_dir) < 0)
|
||||||
|
err(-1, "chdir: %s", temp_dir);
|
||||||
atexit(atexit_temp_dir);
|
atexit(atexit_temp_dir);
|
||||||
|
|
||||||
test_non_blocking_reader();
|
test_non_blocking_reader();
|
||||||
|
Loading…
Reference in New Issue
Block a user