Use different temporary directory templates for fifo_io and fifo_open so

that if the tests fail to GC their working spaces, it's clear which it is.
This commit is contained in:
rwatson 2005-09-12 11:43:51 +00:00
parent 9496bf8e94
commit 4bf620706a
2 changed files with 2 additions and 2 deletions

View File

@ -1228,7 +1228,7 @@ int
main(int argc, char *argv[])
{
strcpy(temp_dir, "/tmp/fifo_create.XXXXXXXXXXX");
strcpy(temp_dir, "/tmp/fifo_io.XXXXXXXXXXX");
if (mkdtemp(temp_dir) == NULL)
err(-1, "mkdtemp");
atexit(atexit_temp_dir);

View File

@ -459,7 +459,7 @@ main(int argc, char *argv[])
if (geteuid() != 0)
errx(-1, "must be run as root");
strcpy(temp_dir, "/tmp/fifo_create.XXXXXXXXXXX");
strcpy(temp_dir, "/tmp/fifo_open.XXXXXXXXXXX");
if (mkdtemp(temp_dir) == NULL)
err(-1, "mkdtemp");
if (chdir(temp_dir) < 0)