summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-09-11 17:41:32 +0000
committerrwatson <rwatson@FreeBSD.org>2005-09-11 17:41:32 +0000
commit42860f374b4b8260908c92864b773ada0a95feb0 (patch)
treeb874d3bfa58817cefabb0d5eced98b7b16389cda /tools
parentcc33905d69e6db907da6f7b84d89bdeffcb7274e (diff)
downloadFreeBSD-src-42860f374b4b8260908c92864b773ada0a95feb0.zip
FreeBSD-src-42860f374b4b8260908c92864b773ada0a95feb0.tar.gz
After going to some trouble to create a temporary directory in which to run
fifo tests, chdir to it.
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/fifo/fifo_open/fifo_open.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/regression/fifo/fifo_open/fifo_open.c b/tools/regression/fifo/fifo_open/fifo_open.c
index 09a3e54..a1528a8 100644
--- a/tools/regression/fifo/fifo_open/fifo_open.c
+++ b/tools/regression/fifo/fifo_open/fifo_open.c
@@ -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();
OpenPOWER on IntegriCloud