diff options
| author | skrll <skrll@NetBSD.org> | 2022-06-12 08:55:36 +0000 |
|---|---|---|
| committer | skrll <skrll@NetBSD.org> | 2022-06-12 08:55:36 +0000 |
| commit | d3d203ebca09e77979ef3a6b4204669bd4e6b68f (patch) | |
| tree | 8ab089d329c64c4fc55644616afa03437623b010 /tests/usr.bin/c++ | |
| parent | b9d377955d78251fecbb26ca60bcc85a6aa597fe (diff) | |
Sprinkle "-static" when using "-pg" as profiling only works with static and
the gcc specs are currently broken.
PR/56876: hppa: "cc -pg" fails with "undefined reference to `mprotect'"
Diffstat (limited to 'tests/usr.bin/c++')
28 files changed, 44 insertions, 44 deletions
diff --git a/tests/usr.bin/c++/asan_common.subr b/tests/usr.bin/c++/asan_common.subr index b16a2c9ec6d..ea2a4f4189e 100644 --- a/tests/usr.bin/c++/asan_common.subr +++ b/tests/usr.bin/c++/asan_common.subr @@ -1,4 +1,4 @@ -# $NetBSD: asan_common.subr,v 1.3 2021/10/12 18:40:01 skrll Exp $ +# $NetBSD: asan_common.subr,v 1.4 2022/06/12 08:55:36 skrll Exp $ # # Copyright (c) 2018, 2019 The NetBSD Foundation, Inc. # All rights reserved. @@ -93,7 +93,7 @@ asan_test_case() { $1_profile_body() { echo \"\$ASAN_CODE\" > test.cpp - c++ -fsanitize=address -o test -pg test.cpp + c++ -fsanitize=address -static -o test -pg test.cpp paxctl +a test atf_check -s not-exit:0 -o not-match:'CHECK\n' -e match:'$3' ./test } @@ -148,7 +148,7 @@ asan_test_case() { atf_check -s not-exit:0 -o not-match:'CHECK\n' -e match:'$3' ./df32 # and another test with profile 32bit binaries - c++ -fsanitize=address -o test -pg -m32 test.cpp + c++ -fsanitize=address -static -o test -pg -m32 test.cpp paxctl +a test atf_check -s not-exit:0 -o not-match:'CHECK\n' -e match:'$3' ./test }" diff --git a/tests/usr.bin/c++/t_call_once.sh b/tests/usr.bin/c++/t_call_once.sh index e080d6af8c9..caf7d7d0cd8 100644 --- a/tests/usr.bin/c++/t_call_once.sh +++ b/tests/usr.bin/c++/t_call_once.sh @@ -1,4 +1,4 @@ -# $NetBSD: t_call_once.sh,v 1.4 2020/10/13 06:49:27 rin Exp $ +# $NetBSD: t_call_once.sh,v 1.5 2022/06/12 08:55:36 skrll Exp $ # # Copyright (c) 2018 The NetBSD Foundation, Inc. # All rights reserved. @@ -111,7 +111,7 @@ int main(void) { return 0; } EOF - atf_check -s exit:0 -o ignore -e ignore c++ -pg -o call_once test.cpp -pthread + atf_check -s exit:0 -static -o ignore -e ignore c++ -pg -o call_once test.cpp -pthread atf_check -s exit:0 -o inline:"hello, world!\n" ./call_once } @@ -138,7 +138,7 @@ int main(void) { return 0; } EOF - atf_check -s exit:0 -o ignore -e ignore c++ -m32 -pg -o call_once test.cpp -pthread + atf_check -s exit:0 -static -o ignore -e ignore c++ -m32 -pg -o call_once test.cpp -pthread atf_check -s exit:0 -o inline:"hello, world!\n" ./call_once } diff --git a/tests/usr.bin/c++/t_call_once2.sh b/tests/usr.bin/c++/t_call_once2.sh index 0771bdb1977..1fb5d8b6232 100644 --- a/tests/usr.bin/c++/t_call_once2.sh +++ b/tests/usr.bin/c++/t_call_once2.sh @@ -1,4 +1,4 @@ -# $NetBSD: t_call_once2.sh,v 1.4 2022/05/07 05:14:09 rin Exp $ +# $NetBSD: t_call_once2.sh,v 1.5 2022/06/12 08:55:36 skrll Exp $ # # Copyright (c) 2018 The NetBSD Foundation, Inc. # All rights reserved. @@ -154,7 +154,7 @@ int main(void) { return 0; } EOF - atf_check -s exit:0 -o ignore -e ignore c++ -pg -o call_once2 test.cpp -pthread + atf_check -s exit:0 -static -o ignore -e ignore c++ -pg -o call_once2 test.cpp -pthread atf_check -s exit:0 -o inline:"hello, world!\n" ./call_once2 } @@ -198,7 +198,7 @@ int main(void) { return 0; } EOF - atf_check -s exit:0 -o ignore -e ignore c++ -m32 -pg -o call_once2 test.cpp -pthread + atf_check -s exit:0 -static -o ignore -e ignore c++ -m32 -pg -o call_once2 test.cpp -pthread atf_check -s exit:0 -o inline:"hello, world!\n" ./call_once2 atf_expect_fail "The combination of 32-bit and profiling should be fail" } diff --git a/tests/usr.bin/c++/t_cxxruntime.sh b/tests/usr.bin/c++/t_cxxruntime.sh index 45140812ce0..eb837326699 100644 --- a/tests/usr.bin/c++/t_cxxruntime.sh +++ b/tests/usr.bin/c++/t_cxxruntime.sh @@ -1,4 +1,4 @@ -# $NetBSD: t_cxxruntime.sh,v 1.5 2020/10/13 06:49:27 rin Exp $ +# $NetBSD: t_cxxruntime.sh,v 1.6 2022/06/12 08:55:36 skrll Exp $ # # Copyright (c) 2017 The NetBSD Foundation, Inc. # All rights reserved. @@ -104,7 +104,7 @@ cxxruntime_profile_body() { #include <iostream> int main(void) {std::cout << "hello world" << std::endl;exit(0);} EOF - atf_check -s exit:0 -o ignore -e ignore c++ -pg -o hello test.cpp + atf_check -s exit:0 -static -o ignore -e ignore c++ -pg -o hello test.cpp atf_check -s exit:0 -o inline:"hello world\n" ./hello } @@ -126,7 +126,7 @@ cxxruntime_profile_32_body() { #include <iostream> int main(void) {std::cout << "hello world" << std::endl;exit(0);} EOF - atf_check -s exit:0 -o ignore -e ignore c++ -m32 -pg -o hello test.cpp + atf_check -s exit:0 -static -o ignore -e ignore c++ -m32 -pg -o hello test.cpp atf_check -s exit:0 -o inline:"hello world\n" ./hello } diff --git a/tests/usr.bin/c++/t_fuzzer_oom.sh b/tests/usr.bin/c++/t_fuzzer_oom.sh index 53177d98561..d452506cc4c 100644 --- a/tests/usr.bin/c++/t_fuzzer_oom.sh +++ b/tests/usr.bin/c++/t_fuzzer_oom.sh @@ -90,7 +90,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { } EOF - c++ -fsanitize=fuzzer -o test -pg test.cc + c++ -fsanitize=fuzzer -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o ignore -e match:"ERROR: libFuzzer: out-of-memory" ./test -rss_limit_mb=30 } diff --git a/tests/usr.bin/c++/t_fuzzer_simple.sh b/tests/usr.bin/c++/t_fuzzer_simple.sh index a60f0c5af3a..41d8cb0feed 100644 --- a/tests/usr.bin/c++/t_fuzzer_simple.sh +++ b/tests/usr.bin/c++/t_fuzzer_simple.sh @@ -98,7 +98,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { } EOF - c++ -fsanitize=fuzzer -o test -pg test.cc + c++ -fsanitize=fuzzer -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o ignore -e match:"BINGO" ./test } diff --git a/tests/usr.bin/c++/t_fuzzer_timeout.sh b/tests/usr.bin/c++/t_fuzzer_timeout.sh index 7811b6d11e4..c027e6c0504 100644 --- a/tests/usr.bin/c++/t_fuzzer_timeout.sh +++ b/tests/usr.bin/c++/t_fuzzer_timeout.sh @@ -88,7 +88,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { } EOF - c++ -fsanitize=fuzzer -o test -pg test.cc + c++ -fsanitize=fuzzer -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o ignore -e match:"ERROR: libFuzzer: timeout" ./test -timeout=5 } diff --git a/tests/usr.bin/c++/t_hello.sh b/tests/usr.bin/c++/t_hello.sh index 5fa89de87ee..c2fec2ef7e4 100644 --- a/tests/usr.bin/c++/t_hello.sh +++ b/tests/usr.bin/c++/t_hello.sh @@ -1,4 +1,4 @@ -# $NetBSD: t_hello.sh,v 1.5 2020/10/13 06:49:27 rin Exp $ +# $NetBSD: t_hello.sh,v 1.6 2022/06/12 08:55:36 skrll Exp $ # # Copyright (c) 2011 The NetBSD Foundation, Inc. # All rights reserved. @@ -101,7 +101,7 @@ hello_profile_body() { #include <stdlib.h> int main(void) {printf("hello world\n");exit(0);} EOF - atf_check -s exit:0 -o ignore -e ignore c++ -pg -o hello test.cpp + atf_check -s exit:0 -static -o ignore -e ignore c++ -pg -o hello test.cpp atf_check -s exit:0 -o inline:"hello world\n" ./hello } @@ -122,7 +122,7 @@ hello_profile_32_body() { #include <stdlib.h> int main(void) {printf("hello world\n");exit(0);} EOF - atf_check -s exit:0 -o ignore -e ignore c++ -m32 -pg -o hello test.cpp + atf_check -s exit:0 -static -o ignore -e ignore c++ -m32 -pg -o hello test.cpp atf_check -s exit:0 -o inline:"hello world\n" ./hello } diff --git a/tests/usr.bin/c++/t_msan_allocated_memory.sh b/tests/usr.bin/c++/t_msan_allocated_memory.sh index 869f8169de9..8a447b6bc6d 100644 --- a/tests/usr.bin/c++/t_msan_allocated_memory.sh +++ b/tests/usr.bin/c++/t_msan_allocated_memory.sh @@ -90,7 +90,7 @@ int main() { } EOF - c++ -fsanitize=memory -o test -pg test.cc + c++ -fsanitize=memory -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o ignore -e match:"WARNING: MemorySanitizer: use-of-uninitialized-value" ./test } diff --git a/tests/usr.bin/c++/t_msan_check_mem.sh b/tests/usr.bin/c++/t_msan_check_mem.sh index 2502a4a1c89..26f843a2530 100644 --- a/tests/usr.bin/c++/t_msan_check_mem.sh +++ b/tests/usr.bin/c++/t_msan_check_mem.sh @@ -92,7 +92,7 @@ int main(int argc, char **argv) { } EOF - c++ -fsanitize=memory -o test -pg test.cc + c++ -fsanitize=memory -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o ignore -e match:"Uninitialized bytes in __msan_check_mem_is_initialized at offset 0 inside" ./test } diff --git a/tests/usr.bin/c++/t_msan_free.sh b/tests/usr.bin/c++/t_msan_free.sh index f75e7ade337..c707742cf20 100644 --- a/tests/usr.bin/c++/t_msan_free.sh +++ b/tests/usr.bin/c++/t_msan_free.sh @@ -88,7 +88,7 @@ int main() { } EOF - c++ -fsanitize=memory -o test -pg test.cc + c++ -fsanitize=memory -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o ignore -e match:"WARNING: MemorySanitizer: use-of-uninitialized-value" ./test } diff --git a/tests/usr.bin/c++/t_msan_heap.sh b/tests/usr.bin/c++/t_msan_heap.sh index 0975005984f..d944ea2d5c0 100644 --- a/tests/usr.bin/c++/t_msan_heap.sh +++ b/tests/usr.bin/c++/t_msan_heap.sh @@ -78,7 +78,7 @@ heap_profile_body(){ int main() { int *a = (int *)malloc(sizeof(int)); return *a; } EOF - c++ -fsanitize=memory -o test -pg test.cc + c++ -fsanitize=memory -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o ignore -e match:"WARNING: MemorySanitizer: use-of-uninitialized-value" ./test } diff --git a/tests/usr.bin/c++/t_msan_partial_poison.sh b/tests/usr.bin/c++/t_msan_partial_poison.sh index 8d49b78d2ac..0dc5a4aac14 100644 --- a/tests/usr.bin/c++/t_msan_partial_poison.sh +++ b/tests/usr.bin/c++/t_msan_partial_poison.sh @@ -94,7 +94,7 @@ int main(void) { } EOF - c++ -fsanitize=memory -o test -pg test.cc + c++ -fsanitize=memory -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o ignore -e match:": 77654321" ./test } diff --git a/tests/usr.bin/c++/t_msan_poison.sh b/tests/usr.bin/c++/t_msan_poison.sh index ea66b21a160..5d0648cc500 100644 --- a/tests/usr.bin/c++/t_msan_poison.sh +++ b/tests/usr.bin/c++/t_msan_poison.sh @@ -92,7 +92,7 @@ int main(void) { } EOF - c++ -fsanitize=memory -o test -pg test.cc + c++ -fsanitize=memory -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o ignore -e match:"Uninitialized bytes in __msan_check_mem_is_initialized at offset 5 inside" ./test } diff --git a/tests/usr.bin/c++/t_msan_realloc.sh b/tests/usr.bin/c++/t_msan_realloc.sh index 2da3f660ad8..90cc2263891 100644 --- a/tests/usr.bin/c++/t_msan_realloc.sh +++ b/tests/usr.bin/c++/t_msan_realloc.sh @@ -90,7 +90,7 @@ int main(int argc, char **argv) { } EOF - c++ -fsanitize=memory -o test -pg test.cc + c++ -fsanitize=memory -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o ignore -e match:"WARNING: MemorySanitizer: use-of-uninitialized-value" ./test } diff --git a/tests/usr.bin/c++/t_msan_shadow.sh b/tests/usr.bin/c++/t_msan_shadow.sh index dc17d94b4e0..6e35648cf28 100644 --- a/tests/usr.bin/c++/t_msan_shadow.sh +++ b/tests/usr.bin/c++/t_msan_shadow.sh @@ -100,7 +100,7 @@ int main(int argc, char **argv) { } EOF - c++ -fsanitize=memory -o test -pg test.cc + c++ -fsanitize=memory -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o match:"2" -e match:"00000000 ff000000" ./test } diff --git a/tests/usr.bin/c++/t_msan_stack.sh b/tests/usr.bin/c++/t_msan_stack.sh index 953f6339ef2..a1019765c97 100644 --- a/tests/usr.bin/c++/t_msan_stack.sh +++ b/tests/usr.bin/c++/t_msan_stack.sh @@ -88,7 +88,7 @@ int main() { } EOF - c++ -fsanitize=memory -o test -pg test.cc + c++ -fsanitize=memory -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o ignore -e match:"MemorySanitizer: bad pointer" ./test } diff --git a/tests/usr.bin/c++/t_msan_unpoison.sh b/tests/usr.bin/c++/t_msan_unpoison.sh index ff125d27d8b..81bf8b8837d 100644 --- a/tests/usr.bin/c++/t_msan_unpoison.sh +++ b/tests/usr.bin/c++/t_msan_unpoison.sh @@ -100,7 +100,7 @@ int main(void) { } EOF - c++ -fsanitize=memory -o test -pg test.cc + c++ -fsanitize=memory -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o ignore -e not-match:"WARNING: MemorySanitizer: use-of-uninitialized-value" ./test } diff --git a/tests/usr.bin/c++/t_pthread_once.sh b/tests/usr.bin/c++/t_pthread_once.sh index 57280d304db..a36ed94d73c 100644 --- a/tests/usr.bin/c++/t_pthread_once.sh +++ b/tests/usr.bin/c++/t_pthread_once.sh @@ -1,4 +1,4 @@ -# $NetBSD: t_pthread_once.sh,v 1.4 2020/10/13 06:49:27 rin Exp $ +# $NetBSD: t_pthread_once.sh,v 1.5 2022/06/12 08:55:36 skrll Exp $ # # Copyright (c) 2018 The NetBSD Foundation, Inc. # All rights reserved. @@ -109,7 +109,7 @@ int main(void) { return 0; } EOF - atf_check -s exit:0 -o ignore -e ignore c++ -pg -o pthread_once test.cpp -pthread + atf_check -s exit:0 -static -o ignore -e ignore c++ -pg -o pthread_once test.cpp -pthread atf_check -s exit:0 -o inline:"hello, world!\n" ./pthread_once } @@ -135,7 +135,7 @@ int main(void) { return 0; } EOF - atf_check -s exit:0 -o ignore -e ignore c++ -m32 -pg -o pthread_once test.cpp -pthread + atf_check -s exit:0 -static -o ignore -e ignore c++ -m32 -pg -o pthread_once test.cpp -pthread atf_check -s exit:0 -o inline:"hello, world!\n" ./pthread_once } diff --git a/tests/usr.bin/c++/t_static_destructor.sh b/tests/usr.bin/c++/t_static_destructor.sh index 811ad6f02ab..1f4fbd7eb02 100644 --- a/tests/usr.bin/c++/t_static_destructor.sh +++ b/tests/usr.bin/c++/t_static_destructor.sh @@ -1,4 +1,4 @@ -# $NetBSD: t_static_destructor.sh,v 1.4 2020/10/13 06:49:27 rin Exp $ +# $NetBSD: t_static_destructor.sh,v 1.5 2022/06/12 08:55:36 skrll Exp $ # # Copyright (c) 2017 The NetBSD Foundation, Inc. # All rights reserved. @@ -122,7 +122,7 @@ struct B { }; int main(void) {struct B b;return 0;} EOF - atf_check -s exit:0 -o ignore -e ignore c++ -pg -o hello test.cpp + atf_check -s exit:0 -static -o ignore -e ignore c++ -pg -o hello test.cpp atf_check -s exit:0 -o inline:"CTOR A\nCTOR B\nDTOR B:10\nDTOR A:20\n" ./hello } @@ -153,7 +153,7 @@ struct B { }; int main(void) {struct B b;return 0;} EOF - atf_check -s exit:0 -o ignore -e ignore c++ -m32 -pg -o hello test.cpp + atf_check -s exit:0 -static -o ignore -e ignore c++ -m32 -pg -o hello test.cpp atf_check -s exit:0 -o inline:"CTOR A\nCTOR B\nDTOR B:10\nDTOR A:20\n" ./hello } diff --git a/tests/usr.bin/c++/t_tsan_data_race.sh b/tests/usr.bin/c++/t_tsan_data_race.sh index fb5e42dcb3a..f20f252cbdd 100644 --- a/tests/usr.bin/c++/t_tsan_data_race.sh +++ b/tests/usr.bin/c++/t_tsan_data_race.sh @@ -95,7 +95,7 @@ int main() { } EOF - c++ -fsanitize=thread -o test -pg test.cc + c++ -fsanitize=thread -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: data race " ./test } diff --git a/tests/usr.bin/c++/t_tsan_heap_use_after_free.sh b/tests/usr.bin/c++/t_tsan_heap_use_after_free.sh index 2c9f28d4673..f38d345b68b 100644 --- a/tests/usr.bin/c++/t_tsan_heap_use_after_free.sh +++ b/tests/usr.bin/c++/t_tsan_heap_use_after_free.sh @@ -130,7 +130,7 @@ int main() { } EOF - c++ -fsanitize=thread -o test -pg test.cc + c++ -fsanitize=thread -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: heap-use-after-free" ./test } diff --git a/tests/usr.bin/c++/t_tsan_lock_order_inversion.sh b/tests/usr.bin/c++/t_tsan_lock_order_inversion.sh index 5bb07523e93..7526bff2a10 100644 --- a/tests/usr.bin/c++/t_tsan_lock_order_inversion.sh +++ b/tests/usr.bin/c++/t_tsan_lock_order_inversion.sh @@ -106,7 +106,7 @@ int main() { } EOF - c++ -fsanitize=thread -o test -pg test.cc + c++ -fsanitize=thread -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: lock-order-inversion" ./test } diff --git a/tests/usr.bin/c++/t_tsan_locked_mutex_destroy.sh b/tests/usr.bin/c++/t_tsan_locked_mutex_destroy.sh index 17324cbe3b7..0fa555312af 100644 --- a/tests/usr.bin/c++/t_tsan_locked_mutex_destroy.sh +++ b/tests/usr.bin/c++/t_tsan_locked_mutex_destroy.sh @@ -114,7 +114,7 @@ int main() { } EOF - c++ -fsanitize=thread -o test -pg test.cc + c++ -fsanitize=thread -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: destroy of a locked mutex" ./test } diff --git a/tests/usr.bin/c++/t_tsan_signal_errno.sh b/tests/usr.bin/c++/t_tsan_signal_errno.sh index 423d9d160f6..25e2475952d 100644 --- a/tests/usr.bin/c++/t_tsan_signal_errno.sh +++ b/tests/usr.bin/c++/t_tsan_signal_errno.sh @@ -107,7 +107,7 @@ int main() { } EOF - c++ -fsanitize=thread -o test -pg test.cc + c++ -fsanitize=thread -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: signal handler spoils errno" ./test } diff --git a/tests/usr.bin/c++/t_tsan_thread_leak.sh b/tests/usr.bin/c++/t_tsan_thread_leak.sh index 9881eeedaa6..cd9022d246c 100644 --- a/tests/usr.bin/c++/t_tsan_thread_leak.sh +++ b/tests/usr.bin/c++/t_tsan_thread_leak.sh @@ -107,7 +107,7 @@ int main() { } EOF - c++ -fsanitize=thread -o test -pg test.cc + c++ -fsanitize=thread -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: thread leak" ./test } diff --git a/tests/usr.bin/c++/t_tsan_vptr_race.sh b/tests/usr.bin/c++/t_tsan_vptr_race.sh index 95823e5b8b9..b85d7e23d92 100644 --- a/tests/usr.bin/c++/t_tsan_vptr_race.sh +++ b/tests/usr.bin/c++/t_tsan_vptr_race.sh @@ -120,7 +120,7 @@ int main() { } EOF - c++ -fsanitize=thread -o test -pg test.cc + c++ -fsanitize=thread -static -o test -pg test.cc paxctl +a test atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: data race on vptr \(ctor/dtor vs virtual call\)" ./test } diff --git a/tests/usr.bin/c++/ubsan_common.subr b/tests/usr.bin/c++/ubsan_common.subr index 123638eb43c..34fb4750625 100644 --- a/tests/usr.bin/c++/ubsan_common.subr +++ b/tests/usr.bin/c++/ubsan_common.subr @@ -1,4 +1,4 @@ -# $NetBSD: ubsan_common.subr,v 1.1 2019/01/29 20:07:03 mgorny Exp $ +# $NetBSD: ubsan_common.subr,v 1.2 2022/06/12 08:55:36 skrll Exp $ # # Copyright (c) 2018, 2019 The NetBSD Foundation, Inc. # All rights reserved. @@ -91,7 +91,7 @@ ubsan_test_case() { $1_profile_body() { echo \"\$UBSAN_CODE\" > test.cpp - c++ -fsanitize=undefined -o test -pg test.cpp + c++ -fsanitize=undefined -static -o test -pg test.cpp atf_check -s ignore -e match:'$3' ./test } @@ -142,7 +142,7 @@ ubsan_test_case() { atf_check -s ignore -e match:'$3' ./df32 # and another test with profile 32bit binaries - c++ -fsanitize=undefined -o test -pg -m32 test.cpp + c++ -fsanitize=undefined -static -o test -pg -m32 test.cpp atf_check -s ignore -e match:'$3' ./test }" } |
