Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
a6127e3
Merge pull request #1 from rust-lang/master
richkadel May 22, 2020
591584e
Add tests for 'impl Default for [T; N]'
MikailBag May 26, 2020
3313bf6
Skip leak test on targets without panic=unwind
MikailBag May 28, 2020
bbb3321
Ensure std benchmarks get tested.
ehuss Jun 8, 2020
d139a72
Merge pull request #2 from rust-lang/master
richkadel Jun 10, 2020
97b0f72
[WIP] injects llvm intrinsic instrprof.increment for coverage reports
richkadel Jun 4, 2020
e0ff7bc
explained lang_item function body (count_code_region)
richkadel Jun 5, 2020
5bb2351
removed experiments for cleaner github PR
richkadel Jun 5, 2020
55e3cc5
Add case for count_code_region() extern lang_item
richkadel Jun 5, 2020
9c8849e
Update src/libcore/intrinsics.rs
richkadel Jun 5, 2020
dea76a5
moved to post_borrowck_cleanup & used MirPatch
richkadel Jun 8, 2020
4b75494
moved instrument_coverage pass, optimized scalar, added FIXME
richkadel Jun 8, 2020
41c4978
added test, Operand::const_from_scalar, require_lang_item, & comments
richkadel Jun 10, 2020
c1b3f93
updated mir-opt test due to other recent changes to MIR
richkadel Jun 10, 2020
d3ca6fd
Enable static-pie for the x86_64-unknown-linux-musl target
haraldh Jun 15, 2020
9e51008
Complete the std::time documentation to warn about the inconsistencie…
poliorcetics Jun 15, 2020
b67bdb5
Re-order correctly the sections in the sidebar
GuillaumeGomez Jun 15, 2020
71c54db
Fix typo in docs of std::mem
ratijas Jun 15, 2020
b014e35
Rollup merge of #70740 - haraldh:static-pie, r=petrochenkov
Dylan-DPC Jun 15, 2020
ba22791
Rollup merge of #72628 - MikailBag:array-default-tests, r=shepmaster
Dylan-DPC Jun 15, 2020
e50684a
Rollup merge of #72836 - poliorcetics:std-time-os-specificities, r=sh…
Dylan-DPC Jun 15, 2020
1fcebd4
Rollup merge of #73011 - richkadel:llvm-count-from-mir-pass, r=tmandry
Dylan-DPC Jun 15, 2020
4012e45
Rollup merge of #73142 - ehuss:std-benches, r=dtolnay
Dylan-DPC Jun 15, 2020
f9e0d44
Rollup merge of #73372 - GuillaumeGomez:re-order-sidebar-sections, r=…
Dylan-DPC Jun 15, 2020
4ab8470
Rollup merge of #73381 - ratijas:fix-typo-std-mem, r=jonas-schievink
Dylan-DPC Jun 15, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Skip leak test on targets without panic=unwind
  • Loading branch information
MikailBag committed May 28, 2020
commit 3313bf62ac45fab2c39e49c788423153754087a9
8 changes: 8 additions & 0 deletions src/libcore/tests/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,14 @@ fn iterator_drops() {
assert_eq!(i.get(), 5);
}

// This test does not work on targets without panic=unwind support.
// To work around this problem, test is marked is should_panic, so it will
// be automagically skipped on unsuitable targets, such as
// wasm32-unknown-unkown.
//
// It means that we use panic for indicating success.
#[test]
#[should_panic(expected = "test succeeded")]
fn array_default_impl_avoids_leaks_on_panic() {
use core::sync::atomic::{AtomicUsize, Ordering::Relaxed};
static COUNTER: AtomicUsize = AtomicUsize::new(0);
Expand Down Expand Up @@ -274,6 +281,7 @@ fn array_default_impl_avoids_leaks_on_panic() {
assert_eq!(*panic_msg, "bomb limit exceeded");
// check that all bombs are successfully dropped
assert_eq!(COUNTER.load(Relaxed), 0);
panic!("test succeeded")
}

#[test]
Expand Down