summaryrefslogtreecommitdiff
path: root/tests/usr.bin/c++
AgeCommit message (Collapse)Author
2023-05-24match the new compiler warningchristos
2022-09-29toolchain/57033: usr.bin/c++/t_call_once2:call_once2_profile test case failsskrll
Remove the -static flag I added because it doesn't fix anything and it actually causes more problems.
2022-09-28toolchain/57033: usr.bin/c++/t_call_once2:call_once2_profile test case failsskrll
Revive a missing space.
2022-06-12Put the sprinkled -static in the right place, i.e. fix up previous.skrll
Thanks to rillig for spotting my mistake.
2022-06-12Sprinkle "-static" when using "-pg" as profiling only works with static andskrll
the gcc specs are currently broken. PR/56876: hppa: "cc -pg" fails with "undefined reference to `mprotect'"
2022-06-02Trailing whitespaceskrll
2022-05-07Bump timeout.rin
2021-12-16Remove bogus architecture detection voodo - tsan is not availablemartin
on most architectures, so just state it that way.
2021-10-12asan is supported on aarch64skrll
2021-09-04Fix typo to correctly initialize call_once2_pic_profile.rin
2020-11-17Mark t_tsan_*:*profile test cases as expected failures as discussed ingson
PR toolchain/55760.
2020-10-13Now, profiling works for GCC9 on aarch64{,eb}.rin
Note that it seems to work even for GCC8, according to log data of official test runs, e.g., https://releng.netbsd.org/b5reports/evbarm-aarch64/2020/2020.09.01.15.45.20/test.log
2020-09-15Simplify test requirements: we only build tsan for amd64 currently.martin
2020-09-14Enable TSan tests for GCC and >32bit address space environmentskamil
2020-02-11Mark compilation with -pg as xfail on aarch64.riastradh
XXX file a PR to xref
2019-08-23Define target_not_supported_body() in TSan, MSan and libFuzzer testskamil
2019-08-18Add ATF c and c++ tests for TSan, MSan, libFuzzerkamil
These tests require Clang/LLVM 7 or newer on NetBSD. Contributed by Yang Zheng during GSoC 2018.
2019-05-15Add explanatory textchristos
2019-01-29Move common UBSAN test case code into ubsan_common.subrmgorny
Reviewed by <kamil>
2019-01-29Move common ASAN test case code into asan_common.subrmgorny
Reviewed by <kamil>
2019-01-08This now works too.christos
2019-01-08this now works...christos
2018-07-16Disable profile and compat 32-bit c++ sanitizer testskamil
These tests are known to be faulty. These fatures aren't ready. They tend to break to unrelated changes to the codebase. Base Clang and GCC are in general dated to use with sanitizers as these features are being fixed on HEAD versions of both compilers (mostly Clang).
2018-05-04Improve wording for non-native speakers of Englishkamil
Improve wording in t_ubsan tests in for c++. No functional change intended. Follow the changed in cc/ by <martin>
2018-05-04Explain VLA in c++/t_ubsan_vla_out_of_bounds.sh (ATF test)kamil
VLA - Variable Length Array Requested by <martin>
2018-05-02Add new ATF Undefined Behavior Sanitizer testskamil
Add new cc and c++ tests to check whether UBSan works. These tests are prepared for GCC (in base) and Clang (with external patches). Enable these tests for all ports by default, just verify whether we are using GCC/Clang or a compatible compiler. Add five equivalent C and C++ tests: - Integer addition overflow - Integer divide by zero - Integer negation overflow - Integer subtraction overflow - VLA out of bounds All tests pass on NetBSD/amd64. Patch submitted by <Harry Pantazis> Minor cleanup by <myself>
2018-04-11Import new C and C++ ATF tests for ASankamil
Add new tests: - tests/usr.bin/cc/t_asan_poison.sh - tests/usr.bin/c++/t_asan_poison.sh These tests verify the following build options: - regular - profile - pic - pie - compat32 - (static unsupported) These tests verify whether ASan code can include compiler and sanitizer specific header: <sanitizer/asan_interface.h>. The testing code checks the ASAN_POISON_MEMORY_REGION() functionality, poisoning valid memory and asserting that it triggers expected failure. Patch submitted by <Siddharth Muralee>
2018-04-04Add new ATF tests for Address Sanitzier (ASan)kamil
Add new C and C++ tests: - t_asan_double_free - t_asan_global_buffer_overflow - t_asan_heap_overflow - t_asan_off_by_one - t_asan_uaf Each tests checks: - regular build - 32-bit - PIC - PIE - profile These tests require paxctl(8) to disable ASLR in order to work in a predictable way. This is especially true for all !regular builds with additional compiler flags. There are no static variations of these tests as this mode is not supported in upstream ASan. Enable these tests on amd64 and i386. This is part two patch, adding the remaining C++ changes. Patch submitted by <Siddharth Muralee> Additional polishing by myself.
2018-04-04Correct a small regression typo in usr.bin/c++ ATF testskamil
TESTS_SH= changed to TESTS_SH+=
2018-04-04Sort entries in ATF tests in tests/usr.bin/c++/Makefilekamil
No functional change intended.
2018-03-24Add new C++ ATF testskamil
Add new variations for existing C++ tests: - Static - Profile+32-bit - PIC+32-bit - PIC+Profile - PIC+Profile+32-bit All tests pass for NetBSD/amd64: - t_cxxruntime - t_hello - t_static_destructor +--------------------------------------------------------------+ | Options | cxxruntime | hello | static_destructor | +--------------------------------------------------------------+ | None | Passed | Passed | Passed | | 32-bit | Passed | Passed | Passed | | PIC | Passed | Passed | Passed | | PIE | Passed | Passed | Passed | | Profile | Passed | Passed | Passed | | Static | Passed | Passed | Passed | | Profile+32-bit | Passed | Passed | Passed | | PIC+32-bit | Passed | Passed | Passed | | PIC+Profile | Passed | Passed | Passed | | PIC+Profile+32-bit | Passed | Passed | Passed | +--------------------------------------------------------------+ Add new C++11 std::call_once tests: - t_call_once - t_call_once2 Add new C++11 test with pthread_once(3) and C++ lambda: - t_pthread_once All tests with the profile option for std::call_once and pthread_once(3) are marked as expected failure (NetBSD/amd64). Results for *_once*: +------------------------------------------------------------+ | Options | call_once | call_once2 | pthread_once | +------------------------------------------------------------+ | None | Passed | Passed | Passed | | 32-bit | Passed | Passed | Passed | | PIC | Passed | Passed | Passed | | PIE | Passed | Passed | Passed | | Profile | Failed | Failed | Failed | | Static | Passed | Passed | Passed | | Profile+32-bit | Failed | Failed | Failed | | PIC+32-bit | Passed | Passed | Passed | | PIC+Profile | Failed | Failed | Failed | | PIC+Profile+32-bit | Failed | Failed | Failed | +------------------------------------------------------------+ Long term there is an option to refacotr the framework for C and C++ tests, in order to reduce code duplication. Patches sent by Yang Zheng <tomsun.0.7@gmail.com>
2017-05-18Add (currently failing) test cases for profiled programs.martin
2017-05-14Add new ATF C++ tests in usr.bin/c++: t_static_destructorkamil
These tests are cloned from t_cxxruntime and check proper order of destructor calls. They must be reported in reverse order of constructor completion. Added tests: - static_destructor - static_destructor_pic - static_destructor_pie - static_destructor32 This test file replaces src/regress/usr.bin/c++/static_destructor.
2017-05-14Use more C++ sugar in t_cxxruntime (ATF test)kamil
2017-05-14Add new ATF C++ tests in usr.bin/c++kamil
These tests are cloned from t_hello and use c++ runtime basic functions. Added tests: - hello - hello_pic - hello_pie - hello32
2017-05-14Add new c++ ATF tests in usr.bin/c++: t_hellokamil
This is a copy of t_hello from usr.bin/cc. Added tests: - hello - hello_pic - hello_pie - hello32 These tests do not use c++ runtime library functions. Protect these tests with MKCXX.