diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-02-16 16:02:46 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-03-06 09:39:30 +0100 |
commit | a66e1837812cefc1f08788f8696724d4931e8022 (patch) | |
tree | e8eb0bc734f63f5540187ac766a151df0ce4ecce /test/integration/framework | |
parent | 872bd447163066b331eb12c0fed0d71c0585f47b (diff) |
tests: expect no output while compiling noopchroot
This way we hopefully notice (new) warnings in this little helper.
Git-Dch: Ignore
Diffstat (limited to 'test/integration/framework')
-rw-r--r-- | test/integration/framework | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/integration/framework b/test/integration/framework index a1523467d..a0eeb6d45 100644 --- a/test/integration/framework +++ b/test/integration/framework @@ -517,7 +517,7 @@ int execvp(const char *file, char *const argv[]) { return func_execvp(newfile, argv); } EOF - testsuccess --nomsg gcc -Wall -fPIC -shared -o noopchroot.so noopchroot.c -ldl + testempty --nomsg gcc -Wall -Wextra -fPIC -shared -o noopchroot.so noopchroot.c -ldl } configcompression() { local CMD='apthelper cat-file -C' @@ -1313,9 +1313,13 @@ testfileequal() { testempty() { msggroup 'testempty' - msgtest "Test for no output of" "$*" + if [ "$1" = '--nomsg' ]; then + shift + else + msgtest "Test for no output of" "$*" + fi local COMPAREFILE="${TMPWORKINGDIRECTORY}/rootdir/tmp/testempty.comparefile" - if ("$@" >"$COMPAREFILE" 2>&1 || true) && test ! -s "$COMPAREFILE"; then + if "$@" >"$COMPAREFILE" 2>&1 && test ! -s "$COMPAREFILE"; then msgpass else msgfailoutput '' "$COMPAREFILE" "$@" |