[LTP] [PATCH] runtest/mm: create TMPFILE in TMPDIR for mmapstress07

Edward Liaw edliaw@google.com
Sat Oct 12 01:10:07 CEST 2024


Use the TMPDIR path for the temporary file instead of /tmp.

Signed-off-by: Edward Liaw <edliaw@google.com>
---
 runtest/mm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtest/mm b/runtest/mm
index 6a8cd0b9d..d8e62af81 100644
--- a/runtest/mm
+++ b/runtest/mm
@@ -47,7 +47,7 @@ mmapstress03 mmapstress03
 mmapstress04 mmapstress04
 mmapstress05 mmapstress05
 mmapstress06 mmapstress06 20
-mmapstress07 TMPFILE=`mktemp /tmp/example.XXXXXXXXXXXX`; mmapstress07 $TMPFILE
+mmapstress07 TMPFILE=`mktemp $TMPDIR/example.XXXXXXXXXXXX`; mmapstress07 $TMPFILE
 mmapstress08 mmapstress08
 mmapstress09 mmapstress09 -p 20 -t 0.2
 mmapstress10 mmapstress10 -p 20 -t 0.2
-- 
2.47.0.rc1.288.g06298d1525-goog



More information about the ltp mailing list