From 2c70652e044b614b07fe85c84ef33a30cd405e7a Mon Sep 17 00:00:00 2001 From: herman ten brugge Date: Sat, 9 Jul 2022 11:51:13 +0200 Subject: [PATCH] Enabled test 112_backtrace Changed script in Makefile for testcase 112 Used bound_struct_copy_count in lib/bcheck.c --- lib/bcheck.c | 1 + tests/tests2/Makefile | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/bcheck.c b/lib/bcheck.c index 4ec586b5..993e687a 100644 --- a/lib/bcheck.c +++ b/lib/bcheck.c @@ -1246,6 +1246,7 @@ void __attribute__((destructor)) __bound_exit(void) fprintf (stderr, "bound_strcat_count %llu\n", bound_strcat_count); fprintf (stderr, "bound_strchr_count %llu\n", bound_strchr_count); fprintf (stderr, "bound_strdup_count %llu\n", bound_strdup_count); + fprintf (stderr, "bound_struct_copy_count %llu\n", bound_struct_copy_count); fprintf (stderr, "bound_not_found %llu\n", bound_not_found); #endif #if BOUND_STATISTIC_SPLAY diff --git a/tests/tests2/Makefile b/tests/tests2/Makefile index bc465f7e..23482e8c 100644 --- a/tests/tests2/Makefile +++ b/tests/tests2/Makefile @@ -17,7 +17,6 @@ ifdef CONFIG_OSX endif ifeq ($(ARCH),x86_64) SKIP += 73_arm64.test - SKIP += 112_backtrace.test # Here memory copy behaves differently endif ifeq (,$(filter i386,$(ARCH))) SKIP += 98_al_ax_extend.test 99_fastcall.test @@ -106,7 +105,8 @@ GEN-ALWAYS = 112_backtrace.test: FLAGS += -dt -b 112_backtrace.test 113_btdll.test 126_bound_global.test: FILTER += \ -e 's;[0-9A-Fa-fx]\{5,\};........;g' \ - -e 's;0x[0-9A-Fa-f]\{1,\};0x?;g' + -e 's;0x[0-9A-Fa-f]\{1,\};0x?;g' \ + -e 's;struct copy destination;memmove dest;g' \ # this test creates two DLLs and an EXE 113_btdll.test: T1 = \