From 8f76bab92e143be815810b93e74bb5796ce6151b Mon Sep 17 00:00:00 2001 From: Akos Kiss Date: Wed, 10 Aug 2016 01:15:55 +0200 Subject: [PATCH] Fix the use of mktemp in tool scripts The manual of `mktemp` states that "TEMPLATE must contain at least 3 consecutive 'X's in last component." Linux implementation seems to be relaxed about this and accepts and rewrites X's even inside the template, but mktemp of OSX is more strict and handles trailing X's only. This patch makes sure that mktemp templates work on both OS's. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu --- tools/runners/run-test-suite.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/runners/run-test-suite.sh b/tools/runners/run-test-suite.sh index e69523847..b10667b2a 100755 --- a/tools/runners/run-test-suite.sh +++ b/tools/runners/run-test-suite.sh @@ -115,7 +115,7 @@ do if [ "$IS_SNAPSHOT" == true ] then # Testing snapshot - SNAPSHOT_TEMP=`mktemp $(basename -s .js $test).XXXXXXXXXX.snapshot` + SNAPSHOT_TEMP=`mktemp $(basename -s .js $test).snapshot.XXXXXXXXXX` cmd_line="${ENGINE#$ROOT_DIR} $ENGINE_ARGS --save-snapshot-for-global $SNAPSHOT_TEMP ${full_test#$ROOT_DIR}" ( ulimit -t $TIMEOUT; $ENGINE $ENGINE_ARGS --save-snapshot-for-global $SNAPSHOT_TEMP $full_test &> $ENGINE_TEMP )