diff options
| author | Dmitry V. Levin <ldv@altlinux.org> | 2013-05-06 18:50:48 +0000 |
|---|---|---|
| committer | Dmitry V. Levin <ldv@altlinux.org> | 2013-05-06 19:15:09 +0000 |
| commit | 53f6795d750794ca47d6ccdd1bc0bd1dbb7c6bfc (patch) | |
| tree | b12184916bcc65616693f3c8effc22ea2ebc2e16 | |
| parent | 6f11acd360f7e49149f7830d289399e4b7cf6a77 (diff) | |
| download | strace-53f6795d750794ca47d6ccdd1bc0bd1dbb7c6bfc.tar.gz strace-53f6795d750794ca47d6ccdd1bc0bd1dbb7c6bfc.tar.bz2 strace-53f6795d750794ca47d6ccdd1bc0bd1dbb7c6bfc.tar.xz | |
tests/stat: enhance regexps
* tests/stat: Enhance regexps that check tracing of stat/stat64 and
fstatat/fstatat64 syscalls.
| -rwxr-xr-x | tests/stat | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
