Verified Commit 8fb90c00 authored by Thomas Haller's avatar Thomas Haller

tests: ignore valgrind warning about unhandled syscalls

On Fedora rawhide (34), valgrind gives a lot of warnings like:

    ./src/platform/tests/test-cleanup-linux.valgrind-log:--48279-- WARNING: unhandled amd64-linux syscall: 439
    ./src/platform/tests/test-cleanup-linux.valgrind-log:--48279-- You may be able to write your own handler.
    ./src/platform/tests/test-cleanup-linux.valgrind-log:--48279-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
    ./src/platform/tests/test-cleanup-linux.valgrind-log:--48279-- Nevertheless we consider this a bug.  Please report
    ./src/platform/tests/test-cleanup-linux.valgrind-log:--48279-- it at http://valgrind.org/support/bug_reports.html.

Ignore them.

(cherry picked from commit 2cb40f6e)
(cherry picked from commit 561bd7bb)
(cherry picked from commit 09b5a72b)
(cherry picked from commit e8155929)
parent 2283cd98
...@@ -297,13 +297,19 @@ if [ $HAS_ERRORS -eq 0 ]; then ...@@ -297,13 +297,19 @@ if [ $HAS_ERRORS -eq 0 ]; then
# valgrind doesn't support setns syscall and spams the logfile. # valgrind doesn't support setns syscall and spams the logfile.
# hack around it... # hack around it...
case "$TEST_NAME" in case "$TEST_NAME" in
'test-acd' | \
'test-address-linux' | \
'test-cleanup-linux' | \
'test-config' | \ 'test-config' | \
'test-link-linux' | \ 'test-link-linux' | \
'test-acd' | \ 'test-lldp' | \
'test-service-providers' | \ 'test-nm-client' | \
'test-platform-general' | \
'test-remote-settings-client' | \ 'test-remote-settings-client' | \
'test-route-linux' | \
'test-secret-agent' | \ 'test-secret-agent' | \
'test-nm-client' ) 'test-service-providers' | \
'test-tc-linux' )
if [ -z "$(sed -e '/^--[0-9]\+-- WARNING: unhandled .* syscall: /,/^--[0-9]\+-- it at http.*\.$/d' "$LOGFILE")" ]; then if [ -z "$(sed -e '/^--[0-9]\+-- WARNING: unhandled .* syscall: /,/^--[0-9]\+-- it at http.*\.$/d' "$LOGFILE")" ]; then
HAS_ERRORS=1 HAS_ERRORS=1
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment