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
/
target_template.txt
diff --git
a/fuzz/src/bin/target_template.txt
b/fuzz/src/bin/target_template.txt
index f73fc6d83d36d13cc744ba2f52d01773bf8e5abf..7db3bc80b9b139e47fbb44fa50413cf733b0c340 100644
(file)
--- a/
fuzz/src/bin/target_template.txt
+++ b/
fuzz/src/bin/target_template.txt
@@
-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!();
+ }
}
}