@@ -759,31 +759,31 @@ fn test_wrap_static_fns() {
759
759
}
760
760
761
761
#[ test]
762
- fn test_wrap_static_fns_cpp ( ) {
762
+ fn test_wrap_static_fns_cxx ( ) {
763
763
// This test is for testing diffs of the generated C source and header files
764
764
// TODO: If another such feature is added, convert this test into a more generic
765
765
// test that looks at `tests/headers/generated` directory.
766
766
let expect_path = PathBuf :: from ( "tests/expectations/tests/generated" )
767
- . join ( "wrap_static_fns " ) ;
767
+ . join ( "wrap_static_fns_cxx " ) ;
768
768
println ! ( "In path is ::: {}" , expect_path. display( ) ) ;
769
769
770
770
let generated_path =
771
- PathBuf :: from ( env:: var ( "OUT_DIR" ) . unwrap ( ) ) . join ( "wrap_static_fns " ) ;
771
+ PathBuf :: from ( env:: var ( "OUT_DIR" ) . unwrap ( ) ) . join ( "wrap_static_fns_cxx " ) ;
772
772
println ! ( "Out path is ::: {}" , generated_path. display( ) ) ;
773
773
774
774
let _bindings = Builder :: default ( )
775
- . header ( "tests/headers/wrap-static-fns.hpp" )
775
+ . header ( "tests/headers/wrap-static-fns-cxx .hpp" )
776
776
. wrap_static_fns ( true )
777
777
. wrap_static_fns_path ( generated_path. display ( ) . to_string ( ) )
778
778
. parse_callbacks ( Box :: new ( parse_callbacks:: WrapAsVariadicFn ) )
779
779
. generate ( )
780
780
. expect ( "Failed to generate bindings" ) ;
781
781
782
782
let expected_cpp = fs:: read_to_string ( expect_path. with_extension ( "cpp" ) )
783
- . expect ( "Could not read generated wrap_static_fns .cpp" ) ;
783
+ . expect ( "Could not read generated wrap_static_fns_cxx .cpp" ) ;
784
784
785
785
let actual_cpp = fs:: read_to_string ( generated_path. with_extension ( "cpp" ) )
786
- . expect ( "Could not read actual wrap_static_fns .cpp" ) ;
786
+ . expect ( "Could not read actual wrap_static_fns_cxx .cpp" ) ;
787
787
788
788
if expected_cpp != actual_cpp {
789
789
error_diff_mismatch (
0 commit comments