Added test suite entry for Bug #1735931
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9981 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2982a37ad5
commit
a33151a48f
8 changed files with 75 additions and 1 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
Version 1.3.32 (in progress)
|
Version 1.3.32 (in progress)
|
||||||
============================
|
============================
|
||||||
|
|
||||||
|
10/12/2007: wuzzeb
|
||||||
|
Added a testsuite entry for Bug #1735931
|
||||||
|
|
||||||
10/09/2007: olly
|
10/09/2007: olly
|
||||||
Automatically rerun autogen.sh if configure.in is modified.
|
Automatically rerun autogen.sh if configure.in is modified.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -411,7 +411,8 @@ MULTI_CPP_TEST_CASES += \
|
||||||
clientdata_prop \
|
clientdata_prop \
|
||||||
imports \
|
imports \
|
||||||
mod \
|
mod \
|
||||||
template_typedef_import
|
template_typedef_import \
|
||||||
|
multi_import
|
||||||
|
|
||||||
NOT_BROKEN_TEST_CASES = $(CPP_TEST_CASES:=.cpptest) \
|
NOT_BROKEN_TEST_CASES = $(CPP_TEST_CASES:=.cpptest) \
|
||||||
$(C_TEST_CASES:=.ctest) \
|
$(C_TEST_CASES:=.ctest) \
|
||||||
|
|
|
||||||
17
Examples/test-suite/multi_import.h
Normal file
17
Examples/test-suite/multi_import.h
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
class XXX
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
int testx() { return 0;}
|
||||||
|
};
|
||||||
|
|
||||||
|
class YYY : public XXX
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
int testy() { return 1;}
|
||||||
|
};
|
||||||
|
|
||||||
|
class ZZZ : public XXX
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
int testz() { return 2;}
|
||||||
|
};
|
||||||
2
Examples/test-suite/multi_import.list
Normal file
2
Examples/test-suite/multi_import.list
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
multi_import_a
|
||||||
|
multi_import_b
|
||||||
15
Examples/test-suite/multi_import_a.i
Normal file
15
Examples/test-suite/multi_import_a.i
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
/* This was reported in Bug #1735931 */
|
||||||
|
|
||||||
|
%module multi_import_a
|
||||||
|
|
||||||
|
%import multi_import_b.i
|
||||||
|
|
||||||
|
%{
|
||||||
|
#include "multi_import.h"
|
||||||
|
%}
|
||||||
|
|
||||||
|
class ZZZ : public XXX
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
int testz();
|
||||||
|
};
|
||||||
13
Examples/test-suite/multi_import_b.i
Normal file
13
Examples/test-suite/multi_import_b.i
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
%module multi_import_b
|
||||||
|
|
||||||
|
%include multi_import_c.i
|
||||||
|
|
||||||
|
%{
|
||||||
|
#include "multi_import.h"
|
||||||
|
%}
|
||||||
|
|
||||||
|
class YYY : public XXX
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
int testy();
|
||||||
|
};
|
||||||
5
Examples/test-suite/multi_import_c.i
Normal file
5
Examples/test-suite/multi_import_c.i
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
class XXX
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
int testx();
|
||||||
|
};
|
||||||
18
Examples/test-suite/python/multi_import_runme.py
Normal file
18
Examples/test-suite/python/multi_import_runme.py
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
import multi_import_a
|
||||||
|
import multi_import_b
|
||||||
|
|
||||||
|
x = multi_import_b.XXX()
|
||||||
|
if x.testx() != 0:
|
||||||
|
raise RuntimeError
|
||||||
|
|
||||||
|
y = multi_import_b.YYY()
|
||||||
|
if y.testx() != 0:
|
||||||
|
raise RuntimeError
|
||||||
|
if y.testy() != 1:
|
||||||
|
raise RuntimeError
|
||||||
|
|
||||||
|
z = multi_import_a.ZZZ()
|
||||||
|
if z.testx() != 0:
|
||||||
|
raise RuntimeError
|
||||||
|
if z.testz() != 2:
|
||||||
|
raise RuntimeError
|
||||||
Loading…
Add table
Add a link
Reference in a new issue