Skip to content

Commit 88792a2

Browse files
committed
Try to reproduce rust-lang/rust#64888
0 parents  commit 88792a2

File tree

6 files changed

+35
-0
lines changed

6 files changed

+35
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[package]
2+
name = "rust-report-time-repro"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
8+
[dependencies]

repro.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#! /bin/bash
2+
3+
# This ought to print warnings that the time limits are exceeded, but
4+
# it does not.
5+
6+
RUST_TEST_TIME_INTEGRATION=50,100 RUST_TEST_TIME_UNIT=50,100 \
7+
cargo +nightly test --test slow \
8+
-- -Zunstable-options --report-time --ensure-time

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("Hello, world!");
3+
}

tests/cli.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//! A slow integration test.
2+
3+
#[test]
4+
fn slow_test() {
5+
println!("Slow test starting...");
6+
std::thread::sleep(std::time::Duration::from_secs(10));
7+
println!("Slow test done.")
8+
}

0 commit comments

Comments
 (0)