diff options
author | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2023-12-11 09:40:03 +0100 |
---|---|---|
committer | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2023-12-11 11:43:31 +0100 |
commit | 61f5b64ae6481e4adb69d007bd1112987bde67ce (patch) | |
tree | fe6e2540e68a35c7ab7290e6a07897c31a365400 | |
parent | 889341a897d3d2e9fb09de1a1c5e764a2c03424f (diff) | |
download | gcc-61f5b64ae6481e4adb69d007bd1112987bde67ce.zip gcc-61f5b64ae6481e4adb69d007bd1112987bde67ce.tar.gz gcc-61f5b64ae6481e4adb69d007bd1112987bde67ce.tar.bz2 |
Testsuite, asan, darwin: Adjust output pattern
Since the last import from upstream libsanitizer, the output has changed
and now looks more like this:
READ of size 6 at 0x7ff7beb2a144 thread T0
#0 0x101cf7796 in MemcmpInterceptorCommon(void*, int (*)(void const*, void const*, unsigned long), void const*, void const*, unsigned long) sanitizer_common_interceptors.inc:813
#1 0x101cf7b99 in memcmp sanitizer_common_interceptors.inc:840
#2 0x108a0c39f in __stack_chk_guard+0xf (dyld:x86_64+0x8039f)
so let's adjust the pattern accordingly.
gcc/testsuite/ChangeLog:
* c-c++-common/asan/memcmp-1.c: Adjust pattern on darwin.
-rw-r--r-- | gcc/testsuite/c-c++-common/asan/memcmp-1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/c-c++-common/asan/memcmp-1.c b/gcc/testsuite/c-c++-common/asan/memcmp-1.c index 0d08c09..31fd6e4 100644 --- a/gcc/testsuite/c-c++-common/asan/memcmp-1.c +++ b/gcc/testsuite/c-c++-common/asan/memcmp-1.c @@ -21,4 +21,4 @@ main () /* { dg-output " #\[2-9\] 0x\[0-9a-f\]+ +(in _*main|\[(\])\[^\n\r]*(\n|\r\n|\r)" { target { ! *-*-darwin* } } } */ /* { dg-output " #\[0-9\] 0x\[0-9a-f\]+ +(in MemcmpInterceptorCommon|\[(\])\[^\n\r]*(\n|\r\n|\r)" { target *-*-darwin* } } */ -/* { dg-output " #\[1-9\] 0x\[0-9a-f\]+ +(in wrap_(memcmp|bcmp)|\[(\])\[^\n\r]*(\n|\r\n|\r)" { target *-*-darwin* } } */ +/* { dg-output " #\[1-9\] 0x\[0-9a-f\]+ +(in (memcmp|bcmp)|\[(\])\[^\n\r]*(\n|\r\n|\r)" { target *-*-darwin* } } */ |