Skip to content

Commit

Permalink
harden standalone testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Oct 20, 2023
1 parent 0aa416b commit f4a9f1b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/tests/standalone/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ fn write_no_inner_attr(output: &str, filter: &[&str]) {
}

fn riddle(output: &str, filter: &[&str], config: &[&str]) {
std::fs::remove_file(output).expect("Failed to delete output");
_ = std::fs::remove_file(output);

let mut command = std::process::Command::new("cargo");

Expand Down
10 changes: 10 additions & 0 deletions crates/tests/standalone/src/b_none.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Bindings generated by `windows-bindgen` 0.52.0

#![allow(
non_snake_case,
non_upper_case_globals,
non_camel_case_types,
dead_code,
clippy::all
)]
::windows_targets::link!("kernel32.dll" "system" fn GetTickCount() -> u32);

0 comments on commit f4a9f1b

Please sign in to comment.