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
3 changed files with 33 additions and 1 deletions
29
Examples/test-suite/scilab/typedef_struct_cpp_runme.sci
Normal file
29
Examples/test-suite/scilab/typedef_struct_cpp_runme.sci
Normal 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);
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue