tests/stat: enhance regexps
* tests/stat: Enhance regexps that check tracing of stat/stat64 and fstatat/fstatat64 syscalls.
This commit is contained in:
parent
6f11acd360
commit
53f6795d75
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user