summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/test/test.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/regress/lib/libcrypto/test/test.c b/src/regress/lib/libcrypto/test/test.c
index af30e33e5e..c99e2c6acc 100644
--- a/src/regress/lib/libcrypto/test/test.c
+++ b/src/regress/lib/libcrypto/test/test.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: test.c,v 1.5 2025/10/07 15:36:30 tb Exp $ */ 1/* $OpenBSD: test.c,v 1.6 2025/10/07 15:41:19 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2025 Joshua Sing <joshua@joshuasing.dev> 3 * Copyright (c) 2025 Joshua Sing <joshua@joshuasing.dev>
4 * 4 *
@@ -24,10 +24,6 @@
24 24
25#include "test.h" 25#include "test.h"
26 26
27#ifndef TEST_TEMP
28#define TEST_TEMP "/tmp/"
29#endif
30
31struct test { 27struct test {
32 struct test *parent; 28 struct test *parent;
33 char *name; 29 char *name;
@@ -71,8 +67,8 @@ test_init(void)
71 return t; 67 return t;
72 68
73 /* Create a temporary file for logging in non-verbose mode */ 69 /* Create a temporary file for logging in non-verbose mode */
74 if ((asprintf(&tmp_file, "%slibressl-test.XXXXXXXX", TEST_TEMP)) == -1) 70 if ((tmp_file = strdup("/tmp/libressl-test.XXXXXXXX")) == NULL)
75 err(1, "asprintf"); 71 err(1, "strdup");
76 if ((out_fd = mkstemp(tmp_file)) == -1) 72 if ((out_fd = mkstemp(tmp_file)) == -1)
77 err(1, "mkstemp"); 73 err(1, "mkstemp");
78 74