aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2025-09-29 02:57:41 +0000
committeriximeow <me@iximeow.net>2025-09-29 03:30:42 +0000
commitd6a936b045d6efea2bee4fb4ee4a14c28c11f6de (patch)
treef443b0dd5a1483d55a500f6d9faafed854c3b0f6
parent5d4abf4603c46a7e1c1de5b436d699c09dcf8861 (diff)
annotation description test requires `fmt`
this was missed in typical testing because either tests run with all features, no features, or fmt. there wasn't a test entry for only std, which was broken.
-rw-r--r--goodfile3
-rw-r--r--test/long_mode/mod.rs2
2 files changed, 4 insertions, 1 deletions
diff --git a/goodfile b/goodfile
index cf93b86..7cebb9d 100644
--- a/goodfile
+++ b/goodfile
@@ -12,9 +12,12 @@ Step.advance("test")
Build.run({"cargo", "test"}, {name="test stdlib/fmt"}) -- artifacts are stored under `name` if that's present
Build.run({"cargo", "test", "--no-default-features"}, {name="test nostdlib/nofmt"})
Build.run({"cargo", "test", "--no-default-features", "--features", "fmt"}, {name="test nostdlib/fmt"})
+Build.run({"cargo", "test", "--no-default-features", "--features", "std"}, {name="test nostdlib/std"})
+Build.run({"cargo", "test", "--no-default-features", "--features", "std,fmt"}, {name="test nostdlib/std+fmt"})
Step.start("ffi")
Step.push("build")
+Build.run({"rustup", "component", "add", "rust-src", "--toolchain", "nightly-x86_64-unknown-linux-gnu"})
Build.run({"cargo", "+nightly", "build", "-Z", "build-std", "--release", "--no-default-features", "--target", Build.environment.vars.native_rust_triple}, {cwd="ffi/"})
Step.advance("validate")
diff --git a/test/long_mode/mod.rs b/test/long_mode/mod.rs
index 2c7771c..a76bbda 100644
--- a/test/long_mode/mod.rs
+++ b/test/long_mode/mod.rs
@@ -5,7 +5,7 @@ mod operand;
mod opcode;
#[cfg(feature="fmt")]
mod display;
-#[cfg(feature="std")]
+#[cfg(all(feature="std", feature="fmt"))]
mod descriptions;
mod evex_generated;
mod reuse_test;