From 3fd645e254564b0f71027f42b940625670bc35ff Mon Sep 17 00:00:00 2001 From: Chris Denton Date: Mon, 5 Aug 2024 23:50:15 +0000 Subject: [PATCH] Check staticlib name falls back to `rust_out` --- tests/run-make/dos-device-input/rmake.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/run-make/dos-device-input/rmake.rs b/tests/run-make/dos-device-input/rmake.rs index cc34dd55107..dee3b86f095 100644 --- a/tests/run-make/dos-device-input/rmake.rs +++ b/tests/run-make/dos-device-input/rmake.rs @@ -1,9 +1,13 @@ //@ only-windows // Reason: dos devices are a Windows thing -use run_make_support::rustc; +use std::path::Path; + +use run_make_support::{rustc, static_lib_name}; fn main() { rustc().input(r"\\.\NUL").crate_type("staticlib").run(); rustc().input(r"\\?\NUL").crate_type("staticlib").run(); + + assert!(Path::new(&static_lib_name("rust_out")).exists()); }