From 737a09d53e57b6ca7bba82e4e579056127fec17f Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 21 Sep 2019 13:12:31 +0100 Subject: make the temporary file names unique so other tests do not overwrite them --- test/nsoption.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/nsoption.c b/test/nsoption.c index 8f2388a5b..fe986790f 100644 --- a/test/nsoption.c +++ b/test/nsoption.c @@ -49,7 +49,9 @@ static char *testnam(char *out) { static int count = 0; static char name[64]; - snprintf(name, 64, "/tmp/nsoptiontest%d", count); + int pid; + pid=getpid(); + snprintf(name, 64, "/tmp/nsoptiontest%d%d", pid, count); count++; return name; } -- cgit v1.2.3