CVS commit: src/tests/usr.bin/c++
Module Name:src Committed By: christos Date: Wed May 24 20:02:34 UTC 2023 Modified Files: src/tests/usr.bin/c++: t_tsan_vptr_race.sh Log Message: match the new compiler warning To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/tests/usr.bin/c++/t_tsan_vptr_race.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/usr.bin/c++
Module Name:src Committed By: christos Date: Wed May 24 20:02:34 UTC 2023 Modified Files: src/tests/usr.bin/c++: t_tsan_vptr_race.sh Log Message: match the new compiler warning To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/tests/usr.bin/c++/t_tsan_vptr_race.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/usr.bin/c++/t_tsan_vptr_race.sh diff -u src/tests/usr.bin/c++/t_tsan_vptr_race.sh:1.7 src/tests/usr.bin/c++/t_tsan_vptr_race.sh:1.8 --- src/tests/usr.bin/c++/t_tsan_vptr_race.sh:1.7 Sun Jun 12 04:55:36 2022 +++ src/tests/usr.bin/c++/t_tsan_vptr_race.sh Wed May 24 16:02:34 2023 @@ -88,7 +88,7 @@ EOF c++ -fsanitize=thread -o test 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 + atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: data race" ./test } vptr_race_profile_body(){ @@ -119,10 +119,9 @@ int main() { return 0; } EOF - - c++ -fsanitize=thread -static -o test -pg test.cc + c++ -fsanitize=thread -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 + atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: data race" ./test } vptr_race_pic_body(){ @@ -165,7 +164,7 @@ EOF paxctl +a test export LD_LIBRARY_PATH=. - atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: data race on vptr \(ctor/dtor vs virtual call\)" ./test + atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: data race" ./test } vptr_race_pie_body(){ @@ -202,7 +201,7 @@ EOF c++ -fsanitize=thread -o test -fpie -pie 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 + atf_check -s ignore -o ignore -e match:"WARNING: ThreadSanitizer: data race" ./test }
CVS commit: src/tests/usr.bin/c++
Module Name:src Committed By: skrll Date: Thu Sep 29 07:22:49 UTC 2022 Modified Files: src/tests/usr.bin/c++: t_call_once2.sh Log Message: toolchain/57033: usr.bin/c++/t_call_once2:call_once2_profile test case fails Remove the -static flag I added because it doesn't fix anything and it actually causes more problems. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/tests/usr.bin/c++/t_call_once2.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/usr.bin/c++/t_call_once2.sh diff -u src/tests/usr.bin/c++/t_call_once2.sh:1.7 src/tests/usr.bin/c++/t_call_once2.sh:1.8 --- src/tests/usr.bin/c++/t_call_once2.sh:1.7 Wed Sep 28 11:09:59 2022 +++ src/tests/usr.bin/c++/t_call_once2.sh Thu Sep 29 07:22:49 2022 @@ -1,4 +1,4 @@ -# $NetBSD: t_call_once2.sh,v 1.7 2022/09/28 11:09:59 skrll Exp $ +# $NetBSD: t_call_once2.sh,v 1.8 2022/09/29 07:22:49 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++ -static -pg -o call_once2 test.cpp -pthread + atf_check -s exit:0 -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++ -static -m32 -pg -o call_once2 test.cpp -pthread + atf_check -s exit:0 -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" }
CVS commit: src/tests/usr.bin/c++
Module Name:src Committed By: skrll Date: Thu Sep 29 07:22:49 UTC 2022 Modified Files: src/tests/usr.bin/c++: t_call_once2.sh Log Message: toolchain/57033: usr.bin/c++/t_call_once2:call_once2_profile test case fails Remove the -static flag I added because it doesn't fix anything and it actually causes more problems. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/tests/usr.bin/c++/t_call_once2.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/usr.bin/c++
Module Name:src Committed By: skrll Date: Wed Sep 28 11:09:59 UTC 2022 Modified Files: src/tests/usr.bin/c++: t_call_once2.sh Log Message: toolchain/57033: usr.bin/c++/t_call_once2:call_once2_profile test case fails Revive a missing space. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/c++/t_call_once2.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/usr.bin/c++
Module Name:src Committed By: skrll Date: Wed Sep 28 11:09:59 UTC 2022 Modified Files: src/tests/usr.bin/c++: t_call_once2.sh Log Message: toolchain/57033: usr.bin/c++/t_call_once2:call_once2_profile test case fails Revive a missing space. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/c++/t_call_once2.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/usr.bin/c++/t_call_once2.sh diff -u src/tests/usr.bin/c++/t_call_once2.sh:1.6 src/tests/usr.bin/c++/t_call_once2.sh:1.7 --- src/tests/usr.bin/c++/t_call_once2.sh:1.6 Sun Jun 12 15:08:38 2022 +++ src/tests/usr.bin/c++/t_call_once2.sh Wed Sep 28 11:09:59 2022 @@ -1,4 +1,4 @@ -# $NetBSD: t_call_once2.sh,v 1.6 2022/06/12 15:08:38 skrll Exp $ +# $NetBSD: t_call_once2.sh,v 1.7 2022/09/28 11:09:59 skrll Exp $ # # Copyright (c) 2018 The NetBSD Foundation, Inc. # All rights reserved. @@ -198,7 +198,7 @@ int main(void) { return 0; } EOF - atf_check -s exit:0 -o ignore -e ignore c++ -static-m32 -pg -o call_once2 test.cpp -pthread + atf_check -s exit:0 -o ignore -e ignore c++ -static -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" }
CVS commit: src/tests/usr.bin/c++
Module Name:src Committed By: rin Date: Sat May 7 05:14:10 UTC 2022 Modified Files: src/tests/usr.bin/c++: t_call_once2.sh Log Message: Bump timeout. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/c++/t_call_once2.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/usr.bin/c++/t_call_once2.sh diff -u src/tests/usr.bin/c++/t_call_once2.sh:1.3 src/tests/usr.bin/c++/t_call_once2.sh:1.4 --- src/tests/usr.bin/c++/t_call_once2.sh:1.3 Sat Sep 4 05:47:31 2021 +++ src/tests/usr.bin/c++/t_call_once2.sh Sat May 7 05:14:09 2022 @@ -1,4 +1,4 @@ -# $NetBSD: t_call_once2.sh,v 1.3 2021/09/04 05:47:31 rin Exp $ +# $NetBSD: t_call_once2.sh,v 1.4 2022/05/07 05:14:09 rin Exp $ # # Copyright (c) 2018 The NetBSD Foundation, Inc. # All rights reserved. @@ -29,60 +29,70 @@ atf_test_case call_once2 call_once2_head() { atf_set "descr" "compile and run std::call_once" atf_set "require.progs" "c++" + atf_set "timeout" "600" } atf_test_case call_once2_profile call_once2_profile_head() { atf_set "descr" "compile and run std::call_once with profiling option" atf_set "require.progs" "c++" + atf_set "timeout" "600" } atf_test_case call_once2_pic call_once2_pic_head() { atf_set "descr" "compile and run PIC std::call_once" atf_set "require.progs" "c++" + atf_set "timeout" "600" } atf_test_case call_once2_pic_32 call_once2_pic_32_head() { atf_set "descr" "compile and run 32-bit PIC std::call_once" atf_set "require.progs" "c++" + atf_set "timeout" "600" } atf_test_case call_once2_pic_profile call_once2_pic_profile_head() { atf_set "descr" "compile and run PIC std::call_once with profiling flag" atf_set "require.progs" "c++" + atf_set "timeout" "600" } atf_test_case call_once2_pic_profile_32 call_once2_pic_profile_32_head() { atf_set "descr" "compile and run 32-bit PIC std::call_once with profiling flag" atf_set "require.progs" "c++" + atf_set "timeout" "600" } atf_test_case call_once2_profile_32 call_once2_profile_32_head() { atf_set "descr" "compile and run 32-bit std::call_once with profiling flag" atf_set "require.progs" "c++" + atf_set "timeout" "600" } atf_test_case call_once2_pie call_once2_pie_head() { atf_set "descr" "compile and run position independent (PIE) std::call_once" atf_set "require.progs" "c++" + atf_set "timeout" "600" } atf_test_case call_once2_32 call_once2_32_head() { atf_set "descr" "compile and run std::call_once for/in netbsd32 emulation" atf_set "require.progs" "c++ file diff cat" + atf_set "timeout" "600" } atf_test_case call_once2_static call_once2_static_head() { atf_set "descr" "compile and run std::call_once with static flag" atf_set "require.progs" "c++" + atf_set "timeout" "600" } call_once2_body() {
CVS commit: src/tests/usr.bin/c++
Module Name:src Committed By: rin Date: Sat May 7 05:14:10 UTC 2022 Modified Files: src/tests/usr.bin/c++: t_call_once2.sh Log Message: Bump timeout. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/c++/t_call_once2.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/usr.bin/c++
Module Name:src Committed By: martin Date: Thu Dec 16 16:30:56 UTC 2021 Modified Files: src/tests/usr.bin/c++: t_tsan_thread_leak.sh t_tsan_vptr_race.sh Log Message: Remove bogus architecture detection voodo - tsan is not available on most architectures, so just state it that way. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/c++/t_tsan_thread_leak.sh \ src/tests/usr.bin/c++/t_tsan_vptr_race.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/usr.bin/c++/t_tsan_thread_leak.sh diff -u src/tests/usr.bin/c++/t_tsan_thread_leak.sh:1.4 src/tests/usr.bin/c++/t_tsan_thread_leak.sh:1.5 --- src/tests/usr.bin/c++/t_tsan_thread_leak.sh:1.4 Tue Nov 17 08:25:57 2020 +++ src/tests/usr.bin/c++/t_tsan_thread_leak.sh Thu Dec 16 16:30:55 2021 @@ -28,41 +28,33 @@ test_target() { - SUPPORT='n' - # Detect address space larger than 32 bits - maxaddress=`sysctl vm.maxaddress|awk '{print $3}'` - if [ $maxaddress -gt 4294967295 ]; then - if command -v cc >/dev/null 2>&1; then - if ! echo __clang__ | cc -E - | grep -q __clang__; then -SUPPORT='y' - elif ! cc -v 2>&1 | awk '/gcc version/{print $3}' | \ -awk -F '.' '($0+0) > 9 {exit 1}'; then -SUPPORT='y' - fi - fi - fi + atf_set "require.arch" "x86_64" } atf_test_case thread_leak thread_leak_head() { atf_set "descr" "Test thread sanitizer for thread leak condition" atf_set "require.progs" "c++ paxctl" + test_target } atf_test_case thread_leak_profile thread_leak_profile_head() { atf_set "descr" "Test thread sanitizer for thread leak with profiling option" atf_set "require.progs" "c++ paxctl" + test_target } atf_test_case thread_leak_pic thread_leak_pic_head() { atf_set "descr" "Test thread sanitizer for thread leak with position independent code (PIC) flag" atf_set "require.progs" "c++ paxctl" + test_target } atf_test_case thread_leak_pie thread_leak_pie_head() { atf_set "descr" "Test thread sanitizer for thread leak with position independent execution (PIE) flag" atf_set "require.progs" "c++ paxctl" + test_target } thread_leak_body(){ @@ -202,11 +194,6 @@ target_not_supported_body() atf_init_test_cases() { - test_target - test $SUPPORT = 'n' && { - atf_add_test_case target_not_supported - return 0 - } atf_add_test_case thread_leak atf_add_test_case thread_leak_profile atf_add_test_case thread_leak_pie Index: src/tests/usr.bin/c++/t_tsan_vptr_race.sh diff -u src/tests/usr.bin/c++/t_tsan_vptr_race.sh:1.4 src/tests/usr.bin/c++/t_tsan_vptr_race.sh:1.5 --- src/tests/usr.bin/c++/t_tsan_vptr_race.sh:1.4 Tue Nov 17 08:25:57 2020 +++ src/tests/usr.bin/c++/t_tsan_vptr_race.sh Thu Dec 16 16:30:55 2021 @@ -26,43 +26,36 @@ # POSSIBILITY OF SUCH DAMAGE. # + test_target() { - SUPPORT='n' - # Detect address space larger than 32 bits - maxaddress=`sysctl vm.maxaddress|awk '{print $3}'` - if [ $maxaddress -gt 4294967295 ]; then - if command -v cc >/dev/null 2>&1; then - if ! echo __clang__ | cc -E - | grep -q __clang__; then -SUPPORT='y' - elif ! cc -v 2>&1 | awk '/gcc version/{print $3}' | \ -awk -F '.' '($0+0) > 9 {exit 1}'; then -SUPPORT='y' - fi - fi - fi + atf_set "require.arch" "x86_64" } atf_test_case vptr_race vptr_race_head() { atf_set "descr" "Test thread sanitizer for vptr race condition" atf_set "require.progs" "c++ paxctl" + test_target } atf_test_case vptr_race_profile vptr_race_profile_head() { atf_set "descr" "Test thread sanitizer for vptr race with profiling option" atf_set "require.progs" "c++ paxctl" + test_target } atf_test_case vptr_race_pic vptr_race_pic_head() { atf_set "descr" "Test thread sanitizer for vptr race with position independent code (PIC) flag" atf_set "require.progs" "c++ paxctl" + test_target } atf_test_case vptr_race_pie vptr_race_pie_head() { atf_set "descr" "Test thread sanitizer for vptr race with position independent execution (PIE) flag" atf_set "require.progs" "c++ paxctl" + test_target } vptr_race_body(){ @@ -226,11 +219,6 @@ target_not_supported_body() atf_init_test_cases() { - test_target - test $SUPPORT = 'n' && { - atf_add_test_case target_not_supported - return 0 - } atf_add_test_case vptr_race atf_add_test_case vptr_race_profile atf_add_test_case vptr_race_pie
CVS commit: src/tests/usr.bin/c++
Module Name:src Committed By: martin Date: Thu Dec 16 16:30:56 UTC 2021 Modified Files: src/tests/usr.bin/c++: t_tsan_thread_leak.sh t_tsan_vptr_race.sh Log Message: Remove bogus architecture detection voodo - tsan is not available on most architectures, so just state it that way. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/c++/t_tsan_thread_leak.sh \ src/tests/usr.bin/c++/t_tsan_vptr_race.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/usr.bin/c++
Module Name:src Committed By: rin Date: Sat Sep 4 05:47:31 UTC 2021 Modified Files: src/tests/usr.bin/c++: t_call_once2.sh Log Message: Fix typo to correctly initialize call_once2_pic_profile. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/c++/t_call_once2.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/usr.bin/c++/t_call_once2.sh diff -u src/tests/usr.bin/c++/t_call_once2.sh:1.2 src/tests/usr.bin/c++/t_call_once2.sh:1.3 --- src/tests/usr.bin/c++/t_call_once2.sh:1.2 Wed May 15 13:43:45 2019 +++ src/tests/usr.bin/c++/t_call_once2.sh Sat Sep 4 05:47:31 2021 @@ -1,4 +1,4 @@ -# $NetBSD: t_call_once2.sh,v 1.2 2019/05/15 13:43:45 christos Exp $ +# $NetBSD: t_call_once2.sh,v 1.3 2021/09/04 05:47:31 rin Exp $ # # Copyright (c) 2018 The NetBSD Foundation, Inc. # All rights reserved. @@ -50,7 +50,7 @@ call_once2_pic_32_head() { } atf_test_case call_once2_pic_profile -call_once2_pic_head() { +call_once2_pic_profile_head() { atf_set "descr" "compile and run PIC std::call_once with profiling flag" atf_set "require.progs" "c++" }
CVS commit: src/tests/usr.bin/c++
Module Name:src Committed By: rin Date: Sat Sep 4 05:47:31 UTC 2021 Modified Files: src/tests/usr.bin/c++: t_call_once2.sh Log Message: Fix typo to correctly initialize call_once2_pic_profile. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/c++/t_call_once2.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/usr.bin/c++
Module Name:src Committed By: christos Date: Wed May 15 13:43:45 UTC 2019 Modified Files: src/tests/usr.bin/c++: t_call_once2.sh Log Message: Add explanatory text To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/c++/t_call_once2.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/usr.bin/c++
Module Name:src Committed By: christos Date: Wed May 15 13:43:45 UTC 2019 Modified Files: src/tests/usr.bin/c++: t_call_once2.sh Log Message: Add explanatory text To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/c++/t_call_once2.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/usr.bin/c++/t_call_once2.sh diff -u src/tests/usr.bin/c++/t_call_once2.sh:1.1 src/tests/usr.bin/c++/t_call_once2.sh:1.2 --- src/tests/usr.bin/c++/t_call_once2.sh:1.1 Fri Mar 23 20:26:51 2018 +++ src/tests/usr.bin/c++/t_call_once2.sh Wed May 15 09:43:45 2019 @@ -1,4 +1,4 @@ -# $NetBSD: t_call_once2.sh,v 1.1 2018/03/24 00:26:51 kamil Exp $ +# $NetBSD: t_call_once2.sh,v 1.2 2019/05/15 13:43:45 christos Exp $ # # Copyright (c) 2018 The NetBSD Foundation, Inc. # All rights reserved. @@ -117,7 +117,7 @@ EOF } call_once2_profile_body() { - atf_expect_fail "profiling option doesn't work now" + atf_expect_fail "profiling option doesn't work with shared libraries" cat > test.cpp << EOF #include #include @@ -290,7 +290,7 @@ EOF } call_once2_pic_profile_body() { - atf_expect_fail "profiling option doesn't work now" + atf_expect_fail "profiling option doesn't work with pic" cat > test.cpp << EOF #include int callpic(void); @@ -333,7 +333,7 @@ EOF } call_once2_pic_profile_32_body() { - atf_expect_fail "profiling option doesn't work now" + atf_expect_fail "profiling option doesn't work with shared libraries" # check whether this arch is 64bit if ! c++ -dM -E - < /dev/null | fgrep -q _LP64; then atf_skip "this is not a 64 bit architecture"