Skip to content

Commit

Permalink
Migrate run-make/used to migrate.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 4, 2024
1 parent 30ea1a2 commit 3101f3e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/tools/tidy/src/allowed_run_make_makefiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ run-make/unknown-mod-stdin/Makefile
run-make/unstable-flag-required/Makefile
run-make/use-suggestions-rust-2018/Makefile
run-make/used-cdylib-macos/Makefile
run-make/used/Makefile
run-make/volatile-intrinsics/Makefile
run-make/wasm-exceptions-nostd/Makefile
run-make/wasm-override-linker/Makefile
Expand Down
7 changes: 0 additions & 7 deletions tests/run-make/used/Makefile

This file was deleted.

16 changes: 16 additions & 0 deletions tests/run-make/used/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//! This test checks rustdoc `-` (stdin) handling

use run_make_support::{rustc, tmp_dir};
use std::process::Command;

fn main() {
rustc().opt_level("3").emit("obj").input("used.rs").run();

let output = Command::new("nm").arg(tmp_dir().join("used.o")).output().unwrap();

assert!(output.status.success());
let stdout = String::from_utf8_lossy(&output.stdout);
if !stdout.contains("FOO") {
panic!("`FOO` not found in stdout:\n`{stdout}`");
}
}

0 comments on commit 3101f3e

Please sign in to comment.