projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Probabilistic channel scoring
[rust-lightning]
/
fuzz
/
src
/
bin
/
router_target.rs
diff --git
a/fuzz/src/bin/router_target.rs
b/fuzz/src/bin/router_target.rs
index c2ef438bb8d9412b4383a58651d834990d127a10..4df8b2a0065e430fa3994beaaef68c825bba78c1 100644
(file)
--- a/
fuzz/src/bin/router_target.rs
+++ b/
fuzz/src/bin/router_target.rs
@@
-93,10
+93,18
@@
fn run_test_cases() {
}
}
}
}
}
}
+ let mut failed_outputs = Vec::new();
for (test, thread) in threads.drain(..) {
if let Some(output) = thread.join().unwrap() {
for (test, thread) in threads.drain(..) {
if let Some(output) = thread.join().unwrap() {
- println!("
Output of {}:\n{}
", test, output);
-
panic!(
);
+ println!("
\nOutput of {}:\n{}\n
", test, output);
+
failed_outputs.push(test
);
}
}
}
}
+ if !failed_outputs.is_empty() {
+ println!("Test cases which failed: ");
+ for case in failed_outputs {
+ println!("{}", case);
+ }
+ panic!();
+ }
}
}