[pygccxml-commit] SF.net SVN: pygccxml: [872] pyplusplus_dev/unittests
Brought to you by:
mbaas,
roman_yakovenko
|
From: <rom...@us...> - 2007-01-19 19:53:10
|
Revision: 872
http://svn.sourceforge.net/pygccxml/?rev=872&view=rev
Author: roman_yakovenko
Date: 2007-01-19 11:52:24 -0800 (Fri, 19 Jan 2007)
Log Message:
-----------
adding new warnings for X** types in functions
Modified Paths:
--------------
pyplusplus_dev/unittests/data/free_function_ignore_bug_to_be_exported.hpp
pyplusplus_dev/unittests/free_function_ignore_bug_tester.py
Modified: pyplusplus_dev/unittests/data/free_function_ignore_bug_to_be_exported.hpp
===================================================================
--- pyplusplus_dev/unittests/data/free_function_ignore_bug_to_be_exported.hpp 2007-01-19 19:51:51 UTC (rev 871)
+++ pyplusplus_dev/unittests/data/free_function_ignore_bug_to_be_exported.hpp 2007-01-19 19:52:24 UTC (rev 872)
@@ -14,6 +14,14 @@
inline void do_nothing(int, int){}
+struct some_dummy_struct_t{};
+
+some_dummy_struct_t** return_some_dummy_struct_ptr_ptr(){
+ return 0;
}
+void fill_some_dummy_struct_ptr_ptr(some_dummy_struct_t**){}
+
+}
+
#endif//__user_text_to_be_exported_hpp__
Modified: pyplusplus_dev/unittests/free_function_ignore_bug_tester.py
===================================================================
--- pyplusplus_dev/unittests/free_function_ignore_bug_tester.py 2007-01-19 19:51:51 UTC (rev 871)
+++ pyplusplus_dev/unittests/free_function_ignore_bug_tester.py 2007-01-19 19:52:24 UTC (rev 872)
@@ -20,10 +20,19 @@
def customize(self, mb ):
do_nothing = mb.free_functions( 'do_nothing' )
do_nothing.exclude()
+
+ x = mb.free_fun( 'fill_some_dummy_struct_ptr_ptr' )
+ self.failUnless( '1051' in ''.join( x.readme() ) )
+ x.exclude()
+ x = mb.free_fun( 'return_some_dummy_struct_ptr_ptr' )
+ self.failUnless( '1050' in ''.join( x.readme() ) )
+ x.exclude()
+
+
mb.build_code_creator(self.EXTENSION_NAME)
code = mb.code_creator.create()
self.failUnless( 'do_nothing' not in code )
-
+
def run_tests(self, module):
pass
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|