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:
parent
9496bf8e94
commit
4bf620706a
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user