Skip to content

Commit 3d11dc0

Browse files
committed
---
yaml --- r: 14374 b: refs/heads/try c: 010f2ab h: refs/heads/master v: v3
1 parent c998e5e commit 3d11dc0

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 23d36be1e92e1db1c93086e909483d5aef89a8d8
5+
refs/heads/try: 010f2abc7029fadff32e3816ad8fb72dd8bf74b4
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/libstd/test.rs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,22 @@ fn run_tests(opts: test_opts, tests: [test_desc],
214214

215215
while done_idx < total {
216216
while wait_idx < concurrency && run_idx < total {
217-
run_test(vec::shift(filtered_tests), ch);
217+
let test = vec::shift(filtered_tests);
218+
if concurrency == 1u {
219+
// We are doing one test at a time so we can print the name
220+
// of the test before we run it. Useful for debugging tests
221+
// that hang forever.
222+
callback(te_wait(test));
223+
}
224+
run_test(test, ch);
218225
wait_idx += 1u;
219226
run_idx += 1u;
220227
}
221228

222229
let (test, result) = comm::recv(p);
223-
callback(te_wait(test));
230+
if concurrency != 1u {
231+
callback(te_wait(test));
232+
}
224233
callback(te_result(test, result));
225234
wait_idx -= 1u;
226235
done_idx += 1u;

0 commit comments

Comments
 (0)