Duplicate tests that are run twice as both C and C++ tests to fix parallel make: typedef_struct

This commit is contained in:
William S Fulton 2016-02-21 16:36:52 +00:00
parent 155e31626c
commit ed1074829f
3 changed files with 33 additions and 1 deletions

View File

@ -471,7 +471,7 @@ CPP_TEST_CASES += \
typedef_reference \
typedef_scope \
typedef_sizet \
typedef_struct \
typedef_struct_cpp \
typedef_typedef \
typemap_arrays \
typemap_array_qualifiers \

View File

@ -0,0 +1,29 @@
exec("swigtest.start", -1);
try
x = new_LineObj();
LineObj_numpoints_set(x, 100);
catch
swigtesterror();
end
if LineObj_numpoints_get(x) <> 100 then swigtesterror(); end
if MS_NOOVERRIDE_get() <> -1111 then swigtesterror(); end
try
y = make_a();
A_t_a_set(y, 200);
catch
swigtesterror();
end
if A_t_a_get(y) <> 200 then swigtesterror(); end
try
A_t_b_set(y, 300);
catch
swigtesterror();
end
if A_t_b_get(y) <> 300 then swigtesterror(); end
exec("swigtest.quit", -1);

View File

@ -0,0 +1,3 @@
%module typedef_struct_cpp
%include "typedef_struct.i"