From a1882fee02671245000d9b8a41cbff5a31243d8f Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Tue, 5 Feb 2013 12:48:33 +0200 Subject: [PATCH] check-exports test: Filter out symbols that start with an underscore These are usually internal to libc, and such symbols are exported in the shared library on some platforms. --- test/suites/api/check-exports | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/suites/api/check-exports b/test/suites/api/check-exports index 1c2ba9a..9adca7d 100755 --- a/test/suites/api/check-exports +++ b/test/suites/api/check-exports @@ -15,7 +15,7 @@ grep 'json_' $top_srcdir/src/jansson.def \ nm -D $SOFILE >/dev/null >$test_log/symbols 2>/dev/null \ || exit 77 # Skip if "nm -D" doesn't seem to work -grep ' [DT] ' $test_log/symbols | cut -d' ' -f3 | sort >$test_log/output +grep ' [DT] ' $test_log/symbols | cut -d' ' -f3 | grep -v '^_' | sort >$test_log/output if ! cmp -s $test_log/exports $test_log/output; then diff -u $test_log/exports $test_log/output >&2