Skip to content

Commit

Permalink
Actually make spectest fuzzing deterministic
Browse files Browse the repository at this point in the history
Turns out #2106 missed the actual sorting operation. Silly me!
  • Loading branch information
alexcrichton authored and abrown committed Mar 29, 2021
1 parent 910f591 commit b1a3c90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/fuzzing/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ fn main() {
.unwrap()
.join("../../tests/spec_testsuite");
let mut code = format!("static FILES: &[(&str, &str)] = &[\n");
let entries = dir
let mut entries = dir
.read_dir()
.unwrap()
.map(|p| p.unwrap().path().display().to_string())
.collect::<Vec<_>>();
entries.sort();
for path in entries {
if !path.ends_with(".wast") {
continue;
Expand Down

0 comments on commit b1a3c90

Please sign in to comment.