tests: filter out ulimit error messages to avoid corruption of .res files
authorJean Privat <jean@pryen.org>
Thu, 28 Jan 2016 01:38:56 +0000 (20:38 -0500)
committerJean Privat <jean@pryen.org>
Thu, 28 Jan 2016 13:42:40 +0000 (08:42 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/tests.sh

index 99e3008..8766a0d 100755 (executable)
@@ -90,8 +90,8 @@ saferun()
                esac
        done
        (
-       ulimit -f "$filelimit"
-       ulimit -t "$usertimelimit"
+       ulimit -f "$filelimit" 2> /dev/null
+       ulimit -t "$usertimelimit" 2> /dev/null
        if test -d "$1"; then
                find $1 | sort
        elif test -n "$TIME"; then