[pygccxml-commit] SF.net SVN: pygccxml: [1298] pygccxml_dev/unittests
Brought to you by:
mbaas,
roman_yakovenko
|
From: <rom...@us...> - 2008-04-07 21:32:16
|
Revision: 1298
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1298&view=rev
Author: roman_yakovenko
Date: 2008-04-07 14:32:23 -0700 (Mon, 07 Apr 2008)
Log Message:
-----------
updating unit tests - don't run msvc specific tests on Linux
Modified Paths:
--------------
pygccxml_dev/unittests/autoconfig.py
pygccxml_dev/unittests/declarations_tester.py
Modified: pygccxml_dev/unittests/autoconfig.py
===================================================================
--- pygccxml_dev/unittests/autoconfig.py 2008-04-07 21:31:33 UTC (rev 1297)
+++ pygccxml_dev/unittests/autoconfig.py 2008-04-07 21:32:23 UTC (rev 1298)
@@ -50,7 +50,7 @@
@staticmethod
def get_pdb_loader():
- if not cxx_parsers_cfg.pdb_loader:
+ if not cxx_parsers_cfg.pdb_loader and sys.platform == 'win32':
from pygccxml.msvc import pdb
pdb_file = os.path.join( data_directory, 'msvc_build', 'Debug', 'msvc_build.pdb' )
cxx_parsers_cfg.pdb_loader = pdb.decl_loader_t( pdb_file )
Modified: pygccxml_dev/unittests/declarations_tester.py
===================================================================
--- pygccxml_dev/unittests/declarations_tester.py 2008-04-07 21:31:33 UTC (rev 1297)
+++ pygccxml_dev/unittests/declarations_tester.py 2008-04-07 21:32:23 UTC (rev 1298)
@@ -3,6 +3,7 @@
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
+import sys
import pprint
import unittest
import autoconfig
@@ -192,9 +193,10 @@
def create_suite():
suite = unittest.TestSuite()
- #~ suite.addTest( unittest.makeSuite(file_by_file_tester_t))
- #~ suite.addTest( unittest.makeSuite(all_at_once_tester_t))
- suite.addTest( unittest.makeSuite(pdb_based_tester_t))
+ suite.addTest( unittest.makeSuite(file_by_file_tester_t))
+ suite.addTest( unittest.makeSuite(all_at_once_tester_t))
+ if sys.platform == 'win32':
+ suite.addTest( unittest.makeSuite(pdb_based_tester_t))
return suite
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|