Skip to content

Commit 4e9fdb8

Browse files
committed
test respecting 'test=false', and what happens with doctests
1 parent 402b3c6 commit 4e9fdb8

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

test-cargo-miri/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ byteorder = "1.0"
1010
[dev-dependencies]
1111
rand = { version = "0.7", features = ["small_rng"] }
1212
num_cpus = "1.10.1"
13+
14+
[lib]
15+
test = false
16+
doctest = false # FIXME: doctests should be skipped automatically until we can run them...

test-cargo-miri/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/// Doc-test test
2+
/// ```rust
3+
/// assert!(true);
4+
/// ```
5+
pub fn make_true() -> bool {
6+
true
7+
}

0 commit comments

Comments
 (0)