33# accompanying file LICENSE_1_0.txt or copy at
44# http://www.boost.org/LICENSE_1_0.txt)
55
6+ import os
67import unittest
78import autoconfig
89import parser_test_case
1415class tester_t ( parser_test_case .parser_test_case_t ):
1516 def __init__ (self , * args ):
1617 parser_test_case .parser_test_case_t .__init__ (self , * args )
17- self .__fname = 'core_types.hpp'
18+ #self.__fname = 'core_types.hpp'
19+ self .__fname = 'merge_free_functions.hpp'
1820
1921 def test (self ):
2022 src_reader = parser .source_reader_t ( self .config )
2123 src_decls = src_reader .read_file ( self .__fname )
2224
2325 xmlfile = src_reader .create_xml_file ( self .__fname )
26+ print xmlfile
2427 try :
2528 fconfig = parser .file_configuration_t ( data = xmlfile
2629 , start_with_declarations = None
@@ -29,11 +32,16 @@ def test(self):
2932 prj_reader = parser .project_reader_t ( self .config )
3033 prj_decls = prj_reader .read_files ( [fconfig ]
3134 , compilation_mode = parser .COMPILATION_MODE .FILE_BY_FILE )
32-
33- self .failUnless ( src_decls == prj_decls
34- , "There is a difference between declarations in file %s." % self .__fname )
35+
36+ declarations .dump_declarations ( src_decls
37+ , os .path .join ( autoconfig .build_directory , 'xmlfile_reader.src.txt' ) )
38+ declarations .dump_declarations ( prj_decls
39+ , os .path .join ( autoconfig .build_directory , 'xmlfile_reader.prj.txt' ) )
40+
41+ if src_decls != prj_decls :
42+ self .fail ( "There is a difference between declarations in file %s." % self .__fname )
3543 finally :
36- utils .remove_file_no_raise ( xmlfile )
44+ pass # utils.remove_file_no_raise( xmlfile )
3745
3846def create_suite ():
3947 suite = unittest .TestSuite ()
0 commit comments