mirror of https://github.com/swig/swig
Duplicate tests that are run twice as both C and C++ tests to fix parallel make: typedef_struct
This commit is contained in:
parent
155e31626c
commit
ed1074829f
|
@ -471,7 +471,7 @@ CPP_TEST_CASES += \
|
||||||
typedef_reference \
|
typedef_reference \
|
||||||
typedef_scope \
|
typedef_scope \
|
||||||
typedef_sizet \
|
typedef_sizet \
|
||||||
typedef_struct \
|
typedef_struct_cpp \
|
||||||
typedef_typedef \
|
typedef_typedef \
|
||||||
typemap_arrays \
|
typemap_arrays \
|
||||||
typemap_array_qualifiers \
|
typemap_array_qualifiers \
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
%module typedef_struct_cpp
|
||||||
|
|
||||||
|
%include "typedef_struct.i"
|
Loading…
Reference in New Issue