From 544cf87d838e035543f15f8959fde074a0023d81 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Sun, 11 Sep 2005 17:41:32 +0000 Subject: [PATCH] After going to some trouble to create a temporary directory in which to run fifo tests, chdir to it. --- tools/regression/fifo/fifo_open/fifo_open.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/regression/fifo/fifo_open/fifo_open.c b/tools/regression/fifo/fifo_open/fifo_open.c index 09a3e54c0771..a1528a8bc12e 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();