diff --git a/tests/testsuite/config.rs b/tests/testsuite/config.rs
index ddaa168eb97..a99e5c81307 100644
--- a/tests/testsuite/config.rs
+++ b/tests/testsuite/config.rs
@@ -2163,3 +2163,65 @@ gitoxide = \"fetch\"
unstable_flags.gitoxide == expect
}
}
+
+#[cargo_test]
+fn build_std() {
+ let gctx = GlobalContextBuilder::new()
+ .env("CARGO_UNSTABLE_BUILD_STD", "core,std,panic_abort")
+ .build();
+ let value = gctx
+ .get::