From 53f6795d750794ca47d6ccdd1bc0bd1dbb7c6bfc Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 6 May 2013 18:50:48 +0000 Subject: [PATCH] tests/stat: enhance regexps * tests/stat: Enhance regexps that check tracing of stat/stat64 and fstatat/fstatat64 syscalls. --- tests/stat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/stat b/tests/stat index 0c1b8043..69fa5bf7 100755 --- a/tests/stat +++ b/tests/stat @@ -27,13 +27,13 @@ LC_ALL=C grep -E -x 'lseek\(1, 46118400000, SEEK_CUR\) += 46118400000|_llseek\(1 timeout -s 9 $check_timeout \ $STRACE -efile find -L sample > /dev/null 2> check.log && -LC_ALL=C grep -E -x 'f?stat(at)?(64)?\((AT_FDCWD, )?"sample", [{]st_mode=S_IFREG\|0644, st_size=46118400000, \.\.\.}(, 0)?\) += 0' check.log > /dev/null || +LC_ALL=C grep -E -x 'stat(64)?\("sample", \{st_mode=S_IFREG\|0644, st_size=46118400000, \.\.\.\}\) += 0|(new)?fstatat(64)?\(AT_FDCWD, "sample", \{st_mode=S_IFREG\|0644, st_size=46118400000, \.\.\.\}, 0\) += 0' check.log > /dev/null || { cat check.log; fail_ 'strace -efile failed to trace stat/stat64 properly'; } timeout -s 9 $check_timeout \ $STRACE -efile find sample > /dev/null 2> check.log && -LC_ALL=C grep -E -x '[[:alnum:]_]*stat[[:alnum:]_]*\([^()"]*"sample", [{]st_mode=S_IFREG\|0644, st_size=46118400000, \.\.\.}.*' check.log > /dev/null || - { cat check.log; fail_ 'strace -efile failed to trace newfstatat/fstatat64 properly'; } +LC_ALL=C grep -E -x 'lstat(64)?\("sample", \{st_mode=S_IFREG\|0644, st_size=46118400000, \.\.\.\}\) += 0|(new)?fstatat(64)?\(AT_FDCWD, "sample", \{st_mode=S_IFREG\|0644, st_size=46118400000, \.\.\.\}, AT_SYMLINK_NOFOLLOW\) += 0' check.log > /dev/null || + { cat check.log; fail_ 'strace -efile failed to trace fstatat/fstatat64 properly'; } rm -f sample -- 2.40.0