summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-10-03 00:59:17 +0200
committerThomas Haller <thaller@redhat.com>2018-10-04 10:58:50 +0200
commit343b99f891137b2601d56851527cda3595372543 (patch)
treefe0436fe37c96cb8dd3593d0b56ee33af01dd7e6 /tools
parent37c6cafb84e70acc668fb08b6ae87ce2f6cb2c12 (diff)
downloadNetworkManager-343b99f891137b2601d56851527cda3595372543.tar.gz
acd/tests: skip NAcd tests under valgrind
Under valgrind, we cannot create an NAcd instance. --10916-- WARNING: unhandled amd64-linux syscall: 321 --10916-- You may be able to write your own handler. --10916-- Read the file README_MISSING_SYSCALL_OR_IOCTL. --10916-- Nevertheless we consider this a bug. Please report --10916-- it at http://valgrind.org/support/bug_reports.html. This limitation already poses a problem, because running NetworkManager under valgrind might fail. However, for tests it doesn't matter and we can just skip them.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run-nm-test.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/run-nm-test.sh b/tools/run-nm-test.sh
index 6b96a139d8..6e7d02c845 100755
--- a/tools/run-nm-test.sh
+++ b/tools/run-nm-test.sh
@@ -294,8 +294,11 @@ fi
if [ $HAS_ERRORS -eq 0 ]; then
# valgrind doesn't support setns syscall and spams the logfile.
# hack around it...
- if [ "$TEST_NAME" = 'test-link-linux' -a -z "$(sed -e '/^--[0-9]\+-- WARNING: unhandled .* syscall: /,/^--[0-9]\+-- it at http.*\.$/d' "$LOGFILE")" ]; then
- HAS_ERRORS=1
+ if [ "$TEST_NAME" = 'test-link-linux' -o \
+ "$TEST_NAME" = 'test-acd' ]; then
+ if [ -z "$(sed -e '/^--[0-9]\+-- WARNING: unhandled .* syscall: /,/^--[0-9]\+-- it at http.*\.$/d' "$LOGFILE")" ]; then
+ HAS_ERRORS=1
+ fi
fi
fi