diff options
Diffstat (limited to 'tests/tests.rs')
-rw-r--r-- | tests/tests.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/tests.rs b/tests/tests.rs index 9bf11da9..2f8cdea9 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -352,6 +352,7 @@ fn test_clang_env_args() { "-D_ENV_ONE=1 -D_ENV_TWO=\"2 -DNOT_THREE=1\"", ); let actual = builder() + .disable_header_comment() .header_contents( "test.hpp", "#ifdef _ENV_ONE\nextern const int x[] = { 42 };\n#endif\n\ @@ -366,9 +367,7 @@ fn test_clang_env_args() { println!("{}", stderr); let (expected, _) = rustfmt( - "/* automatically generated by rust-bindgen */ - -extern \"C\" { + "extern \"C\" { pub static x: [::std::os::raw::c_int; 1usize]; } extern \"C\" { @@ -384,6 +383,7 @@ extern \"C\" { #[test] fn test_header_contents() { let actual = builder() + .disable_header_comment() .header_contents("test.h", "int foo(const char* a);") .clang_arg("--target=x86_64-unknown-linux") .generate() @@ -394,9 +394,7 @@ fn test_header_contents() { println!("{}", stderr); let (expected, _) = rustfmt( - "/* automatically generated by rust-bindgen */ - -extern \"C\" { + "extern \"C\" { pub fn foo(a: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } " |