projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #944 from TheBlueMatt/2021-06-0.0.99
[rust-lightning]
/
fuzz
/
src
/
bin
/
msg_revoke_and_ack_target.rs
diff --git
a/fuzz/src/bin/msg_revoke_and_ack_target.rs
b/fuzz/src/bin/msg_revoke_and_ack_target.rs
index 34df3579d7d16679f72a3519ef45bfb172bf0f73..e0f781986d46a916013659661cd076457f178c4b 100644
(file)
--- a/
fuzz/src/bin/msg_revoke_and_ack_target.rs
+++ b/
fuzz/src/bin/msg_revoke_and_ack_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!();
+ }
}
}