From fdcfdb9cdd8e1eb89286e79046f34d811e41d7a2 Mon Sep 17 00:00:00 2001 From: Tomasz Kapela Date: Wed, 19 Apr 2017 13:19:43 +0200 Subject: [PATCH] test: fix possible artifacts in unicode_api Travis sometimes reports a function 'invalid' to not have U/W versions. Add vmem_stats_print to the exclude list, it does not need to have U/W versions. --- src/test/unicode_api/TEST0 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/unicode_api/TEST0 b/src/test/unicode_api/TEST0 index 502e1314dd1..fc9bae060dd 100755 --- a/src/test/unicode_api/TEST0 +++ b/src/test/unicode_api/TEST0 @@ -50,7 +50,7 @@ require_command clang SRC=../.. HEADERS_DIR=$SRC/include INC_DIR=$SRC/include/libpmemobj -EXC_PATT="set_funcs|strdup|rpmem" +EXC_PATT="set_funcs|strdup|rpmem|vmem_stats_print" FAILED=0 function check_file { @@ -58,7 +58,7 @@ function check_file { local dir=$2 local pat=$3 - local funcs=$(clang -Xclang -ast-dump $file -fno-color-diagnostics 2> /dev/null |\ + local funcs=$(clang -Xclang -ast-dump -I$HEADERS_DIR $file -fno-color-diagnostics 2> /dev/null |\ grep "FunctionDecl.*\(vmem\|pmem\).*char \*" | cut -d " " -f 6) for func in $funcs do