We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50077c5 commit ed52c7bCopy full SHA for ed52c7b
bindgen-tests/tests/tests.rs
@@ -742,7 +742,24 @@ fn test_extern_generated_headers() {
742
let actual_h = fs::read_to_string(generated_path.join("extern.h"))
743
.expect("Could not read actual extern.h");
744
745
- assert_eq!(expected_c, actual_c);
746
- assert_eq!(expected_h, actual_h);
+ if expected_c != actual_c {
+ error_diff_mismatch(
747
+ &actual_c,
748
+ &expected_c,
749
+ None,
750
+ Path::new(expect_path.join("extern.c").to_str().unwrap()),
751
+ )
752
+ .unwrap();
753
+ }
754
+
755
+ if expected_h != actual_h {
756
757
+ &actual_h,
758
+ &expected_h,
759
760
+ Path::new(expect_path.join("extern.h").to_str().unwrap()),
761
762
763
764
765
}
0 commit comments