about summary refs log tree commit diff
path: root/src/test/ui/sanitize
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-413/+0
2022-11-08prevent uninitialized access in black_box for zero-sized-typesKrasimir Georgiev-0/+32
2022-10-01bless ui testsMaybe Waffle-1/+1
2022-09-28Rollup merge of #102232 - Urgau:stabilize-bench_black_box, r=TaKO8KiYuki Okushi-9/+1
Stabilize bench_black_box This PR stabilize `feature(bench_black_box)`. ```rust pub fn black_box<T>(dummy: T) -> T; ``` The FCP was completed in https://github.com/rust-lang/rust/issues/64102. `@rustbot` label +T-libs-api -T-libs
2022-09-27Stabilize bench_black_boxUrgau-9/+1
2022-09-18Remove -Znew-llvm-pass-managerJosh Stone-1/+1
2022-09-09relax msan error-pattern due to LLVM changesTim Neumann-1/+1
2022-09-09Rollup merge of #99207 - 5225225:msan-eager-checks, r=jackh726Matthias Krüger-4/+45
Enable eager checks for memory sanitizer Fixes #99179
2022-08-29Fix tests due to stricter invalid_value5225225-0/+1
2022-08-14Emit noundef even for unoptimised code if msan is on5225225-2/+8
2022-08-14Enable eager checks for memory sanitizer5225225-3/+38
2022-08-12adapt test for msan message changeKrasimir Georgiev-1/+1
LLVM commit https://github.com/llvm/llvm-project/commit/057cabd997aeaef136e1e14f2ee645bd5bb197dd removed the function from the msan error message. This adapts our test accordingly. Found via our experimental rust + llvm @ HEAD bot: https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/12634#018289fe-b0bc-4bab-89b3-fb1d4e38f6db
2022-02-12Ignore failing test on aarch64Benoît du Garreau-0/+3
2021-10-03Practice diagnostic message conventionHirochika Matsumoto-1/+1
2021-08-12Implement `black_box` using intrinsicGary Guo-1/+1
The new implementation allows some `memcpy`s to be optimized away, so the uninit value in ui/sanitize/memory.rs is constructed directly onto the return place. Therefore the sanitizer now says that the value is allocated by `main` rather than `random`.
2021-06-24Re-Annotate the tests with needs-llvm-componentsSimonas Kazlauskas-0/+3
Doesn't work though, because compiletest doesn't process ignores on a per-revision manner.
2021-05-29Diagnose use sanitizers with crt-static12101111-0/+9
2021-04-25fix sanitizer testsRalf Jung-4/+4
2021-04-09Auto merge of #81942 - the8472:reduce-ui-test-threads, r=Mark-Simulacrumbors-1/+2
reduce threads spawned by ui-tests The test harness already spawns enough tests to keep all cores busy. Individual tests should keep their own threading to a minimum to avoid context switch overhead. When running ui tests with lld enabled this shaves about 10% off that testsuite on my machine. Resolves #81946
2021-04-09reduce threads spawned by ui-testsThe8472-1/+2
the test harness already spawns enough tests for all cores, individual tests should keep their own threading to a minimum to avoid context switch overhead some tests fail with 1 CGU, so explicit compile flags have been added to keep their old behavior
2021-04-03Maintain supported sanitizers as a target propertySimonas Kazlauskas-3/+2
This commit adds an additional target property – `supported_sanitizers`, and replaces the hardcoded allowlists in argument parsing to use this new property. Fixes #81802
2021-02-07HWASan supportTri Vo-0/+19
2020-12-10Fix sanitizer test output matchingCorey Farwell-1/+1
2020-11-12fully exploited the dropped support of LLVM 8DevJPM-1/+0
This commit grepped for LLVM_VERSION_GE, LLVM_VERSION_LT, get_major_version and min-llvm-version and statically evaluated every expression possible (and sensible) assuming that the LLVM version is >=9 now
2020-07-19Add missing : after *llvm-versionLzu Tao-1/+1
2020-06-20Support sanitizers on aarch64-unknown-linux-gnuTomasz Miąsko-1/+1
2020-06-19Rollup merge of #73347 - tmiasko:incompatible-sanitizers, r=nikicManish Goregaokar-3/+12
Diagnose use of incompatible sanitizers Emit an error when incompatible sanitizer are configured through command line options. Previously the last one configured prevailed and others were silently ignored. Additionally use a set to represent configured sanitizers, making it possible to enable multiple sanitizers at once. At least in principle, since currently all of them are considered to be incompatible with others.
2020-06-14Diagnose use of incompatible sanitizersTomasz Miąsko-3/+12
Emit an error when incompatible sanitizer are configured through command line options. Previously the last one configured prevailed and others were silently ignored. Additionally use a set to represent configured sanitizers, making it possible to enable multiple sanitizers at once. At least in principle, since currently all of them are considered to be incompatible with others.
2020-06-13compiletest: Add directives to detect sanitizer supportTomasz Miąsko-11/+12
Add needs-sanitizer-{address,leak,memory,thread} directive indicating that test requires target with support for specific sanitizer. This is an addition to the existing needs-sanitizer-support directive indicating that test requires a sanitizer runtime library.
2020-05-14Consistently use LLVM lifetime markers during codegenTomasz Miąsko-0/+31
Ensure that inliner inserts lifetime markers if they have been emitted during codegen. Otherwise if allocas from inlined functions are merged together, lifetime markers from one function might invalidate load & stores performed by the other one.
2020-04-11rustc: Add a warning count upon completionRoccoDev-0/+2
2020-04-10Add ThreadSanitizer test caseTomasz Miąsko-0/+57
2020-04-06Move sanitize-inline-always test to sanitize directoryTomasz Miąsko-0/+28
2020-03-08unix: Don't override existing SIGSEGV/BUS handlersJosh Stone-0/+19
Although `stack_overflow::init` runs very early in the process, even before `main`, there may already be signal handlers installed for things like the address sanitizer. In that case, just leave it alone, and don't bother trying to allocate our own signal stacks either.
2020-03-08Rollup merge of #69800 - tmiasko:address-g, r=nikicMazdak Farrokhzad-3/+2
Compile address sanitizer test with debuginfo This makes error-pattern to match regardless of current configuration of `rust.debuginfo-level-tests` in `config.toml`.
2020-03-07Compile address sanitizer test with debuginfoTomasz Miąsko-3/+2
This makes error-pattern to match regardless of current configuration of `rust.debuginfo-level-tests` in `config.toml`.
2020-03-06fix various typosMatthias Krüger-1/+1
2020-03-03Add test for -Znew-llvm-pass-manager -Clto=thin -Zsanitizer=...Tomasz Miąsko-0/+27
Additionally verify that the current implementation of LLVM version check (which uses lexicographic ordering) is good enough to exclude versions before LLVM 9, where the new LLVM pass manager is unsupported.
2020-01-27Move sanitizer tests to a separate directoryTomasz Miąsko-0/+141