From dd2ac8366655e81d14a7aa43e5ac884e5c094480 Mon Sep 17 00:00:00 2001 From: Gabor Buella Date: Sun, 8 Apr 2018 00:16:17 +0200 Subject: [PATCH 1/2] syscall_format test - make some lines optional Make some lines in the match file optional, those which were made optional in bb10939828b85563bf3eb1e75883d12bba447069 --- test/libcintercept3.log.match | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/libcintercept3.log.match b/test/libcintercept3.log.match index 4730d47b..3d8d0827 100644 --- a/test/libcintercept3.log.match +++ b/test/libcintercept3.log.match @@ -170,8 +170,8 @@ $(S) $(XX) -- madvise((null), 0, 2) = ? $(S) $(XX) -- madvise((null), 0, 2) = 22 $(S) $(XX) -- mlock(0x123000, 0x3000) = ? $(S) $(XX) -- mlock(0x123000, 0x3000) = 22 -$(S) $(XX) -- mlock2(0x123000, 0x3000, 0x0) = ? -$(S) $(XX) -- mlock2(0x123000, 0x3000, 0x0) = 22 +$(OPT)$(S) $(XX) -- mlock2(0x123000, 0x3000, 0x0) = ? +$(OPT)$(S) $(XX) -- mlock2(0x123000, 0x3000, 0x0) = 22 $(S) $(XX) -- munlock(0x123000, 0x3000) = ? $(S) $(XX) -- munlock(0x123000, 0x3000) = 22 $(S) $(XX) -- mlockall(0x1) = ? @@ -696,8 +696,8 @@ $(S) $(XX) -- mq_getsetattr(0x1, 0x123000, 0x234000) = ? $(S) $(XX) -- mq_getsetattr(0x1, 0x123000, 0x234000) = 22 $(S) $(XX) -- kexec_load(0x1, 0x2, 0x123000, 0x2) = ? $(S) $(XX) -- kexec_load(0x1, 0x2, 0x123000, 0x2) = 22 -$(S) $(XX) -- kexec_file_load(0x1, 0x2, 0x3, $(XX), 0x2) = ? -$(S) $(XX) -- kexec_file_load(0x1, 0x2, 0x3, $(XX), 0x2) = 22 +$(OPT)$(S) $(XX) -- kexec_file_load(0x1, 0x2, 0x3, $(XX), 0x2) = ? +$(OPT)$(S) $(XX) -- kexec_file_load(0x1, 0x2, 0x3, $(XX), 0x2) = 22 $(S) $(XX) -- waitid(0x1, 0x2, 0x123000, 0x4) = ? $(S) $(XX) -- waitid(0x1, 0x2, 0x123000, 0x4) = 22 $(S) $(XX) -- add_key(0x123000, 0x234000, 0x123000, 0x234000, 0x1) = ? From e85b98a18b3be3fb7bbff784688665ae23626c56 Mon Sep 17 00:00:00 2001 From: Gabor Buella Date: Sun, 8 Apr 2018 00:19:46 +0200 Subject: [PATCH 2/2] Rename: libcintercept3.log -> syscall_format.log To match the ctest test name. --- test/CMakeLists.txt | 2 +- test/{libcintercept3.log.match => syscall_format.log.match} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename test/{libcintercept3.log.match => syscall_format.log.match} (100%) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 7358a23e..35253460 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -329,6 +329,6 @@ add_test(NAME "syscall_format_logging" -DTEST_EXTRA_PRELOAD=${TEST_EXTRA_PRELOAD} -DTEST_PROG=$ -DLIB_FILE= - -DMATCH_FILE=${CMAKE_CURRENT_SOURCE_DIR}/libcintercept3.log.match + -DMATCH_FILE=${CMAKE_CURRENT_SOURCE_DIR}/syscall_format.log.match -DTEST_NAME=syscall_format_logging ${CHECK_LOG_COMMON_ARGS}) diff --git a/test/libcintercept3.log.match b/test/syscall_format.log.match similarity index 100% rename from test/libcintercept3.log.match rename to test/syscall_format.log.match