summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Paoliello <danpao@microsoft.com>2025-06-21 11:50:44 -0700
committerDaniel Paoliello <danpao@microsoft.com>2025-06-21 11:50:44 -0700
commit33b3ea23c9b5a1192e78e3ee7306cf2aafeff3d1 (patch)
tree0434f3bff8df020dcd773562edc5572895e52e2f /tests
parentea34650916887b5075812d0f11c1d3209e7f94ab (diff)
downloadrust-33b3ea23c9b5a1192e78e3ee7306cf2aafeff3d1.tar.gz
rust-33b3ea23c9b5a1192e78e3ee7306cf2aafeff3d1.zip
Enable fmt-write-bloat for Windows
Diffstat (limited to 'tests')
-rw-r--r--tests/run-make/fmt-write-bloat/rmake.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/run-make/fmt-write-bloat/rmake.rs b/tests/run-make/fmt-write-bloat/rmake.rs
index 6875ef9ddc0..3348651d501 100644
--- a/tests/run-make/fmt-write-bloat/rmake.rs
+++ b/tests/run-make/fmt-write-bloat/rmake.rs
@@ -15,14 +15,9 @@
 //! `NO_DEBUG_ASSERTIONS=1`). If debug assertions are disabled, then we can check for the absence of
 //! additional `usize` formatting and padding related symbols.
 
-//@ ignore-windows
-// Reason:
-// - MSVC targets really need to parse the .pdb file (aka the debug information).
-//   On Windows there's an API for that (dbghelp) which maybe we can use
-// - MinGW targets have a lot of symbols included in their runtime which we can't avoid.
-//   We would need to make the symbols we're looking for more specific for this test to work.
 //@ ignore-cross-compile
 
+use run_make_support::artifact_names::bin_name;
 use run_make_support::env::no_debug_assertions;
 use run_make_support::rustc;
 use run_make_support::symbols::any_symbol_contains;
@@ -36,5 +31,5 @@ fn main() {
         // otherwise, add them to the list of symbols to deny.
         panic_syms.extend_from_slice(&["panicking", "panic_fmt", "pad_integral", "Display"]);
     }
-    assert!(!any_symbol_contains("main", &panic_syms));
+    assert!(!any_symbol_contains(bin_name("main"), &panic_syms));
 }