]> mj.ucw.cz Git - eval.git/commitdiff
Eval: Use try-ln where possible
authorMartin Mares <mj@ucw.cz>
Fri, 26 Mar 2010 12:21:43 +0000 (13:21 +0100)
committerMartin Mares <mj@ucw.cz>
Fri, 26 Mar 2010 12:21:43 +0000 (13:21 +0100)
eval/libeval.sh

index 2bb84bb61cde45b77e66eb6a6d02c540bed3f376..676dbef399f3b6ea2ddd5df1029ef95c747b694c 100644 (file)
@@ -430,7 +430,7 @@ function test-run-interactive
 function test-run-open-data
 {
        [ -f $SDIR/$TEST.out ] || test-result 0 "No solution"
-       ln $SDIR/$TEST.out $TDIR/$TEST.out
+       try-ln $SDIR/$TEST.out $TDIR/$TEST.out
 }
 
 # Syntax checks
@@ -458,7 +458,7 @@ function output-check
        MSG=
        if [ -n "$OUTPUT_CHECK" -a "$OUT_TYPE" != none -a -z "$EV_NOCHECK" ] ; then
                pcont "<check> "
-               [ -f $PDIR/$TEST.out ] && ln $PDIR/$TEST.out $TDIR/$TEST.ok
+               [ -f $PDIR/$TEST.out ] && try-ln $PDIR/$TEST.out $TDIR/$TEST.ok
                OCHECK=$(expand-var OUTPUT_CHECK)
                echo "Output check command: $OCHECK"
                if ! eval $OCHECK 2>$TMPDIR/exec.out ; then