From b1a3c9047f50794fcbc7692f6f53383044ff2875 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 29 Mar 2021 08:23:23 -0700 Subject: [PATCH] Actually make spectest fuzzing deterministic Turns out #2106 missed the actual sorting operation. Silly me! --- crates/fuzzing/build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/fuzzing/build.rs b/crates/fuzzing/build.rs index 73d3e9d131..428355beb7 100644 --- a/crates/fuzzing/build.rs +++ b/crates/fuzzing/build.rs @@ -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::>(); + entries.sort(); for path in entries { if !path.ends_with(".wast") { continue;