shithub: mc

Download patch

ref: 2b13f71e390a91faabcc209f44b1ec20ae0fa4ff
parent: 6c6a15bf92f7a18265b080348491b831f523fd4e
author: Ori Bernstein <[email protected]>
date: Fri Oct 18 08:44:37 EDT 2013

Portability fix for runtest.sh

--- a/test/runtest.sh
+++ b/test/runtest.sh
@@ -50,7 +50,11 @@
 
 
 function expectcompare {
-    t=$TMPDIR/myrtest-$1-$RANDOM
+    if [ x"" !=  x"$TMPDIR" ]; then 
+        t=$TMPDIR/myrtest-$1-$RANDOM
+    else
+        t=/tmp/myrtest-$1-$RANDOM
+    fi
     ./$1 $3 > $t
     if cmp $t data/$1-expected; then
         pass $1