From ad45759ab7a47c7a7932f7e6be66f3ea106b643b Mon Sep 17 00:00:00 2001 From: Baptiste Lepilleur Date: Wed, 3 Jul 2002 06:02:49 +0000 Subject: Include/cppunit/XmlOutputter. include/cppunit/XmlOutputter.h: fixed XmlOutputter constructed default value initializatino which caused compilation error with BC5. * src/cppunit/PlugInManager.cpp: added missing CPPUNIT_NO_TESTPLUGIN guard. * src/msvc6/testrunner/TestRunner.dsp: * src/msvc6/testrunner/TestRunner.rc: * src/msvc6/testrunner/TestRunnerDlg.cpp: * src/msvc6/testrunner/TestRunnerDlg.h: * src/msvc6/testrunner/TreeHierarchyDlg.cpp: * src/msvc6/testrunner/TreeHierarchyDlg.h: * src/msvc6/testpluginrunner/TestPlugInRunner.dsp: * src/msvc6/testpluginrunner/TestPlugInRunner.rc: * src/msvc6/testpluginrunner/TestPlugInRunnerApp.cpp: * src/msvc6/testpluginrunner/TestPlugInRunnerDlg.cpp: * src/msvc6/testpluginrunner/TestPlugInRunnerDlg.h: applied Steven Mitter patch to fix bug #530426 (conflict between TestRunner and host application resources). Adapted patch to compile work with Unicode. * src/msvc6/testrunner/ResourceLoaders.h: * src/msvc6/testrunner/ResourceLoaders.cpp: * src/msvc6/testrunner/Change-Diary-ResourceBugFix.txt: added, from Steven Mitter's patch. Simplified loadCString() to compile with Unicode. * src/cppunit/cppunit.dsp: * src/cppunit/cppunit_dll.dsp: * src/DllPlugInTester/DllPlugInTester.dsp: * src/msvc6/testrunner/TestRunner.dsp: * src/msvc6/testpluginrunner/TestPlugInRunner.dsp: all lib, dll and exe are now created in the intermediate directory. A post-build rule is used to copy them to the lib/ directory. --- include/cppunit/plugin/DynamicLibraryManager.h | 10 ++++++++++ include/cppunit/plugin/DynamicLibraryManagerException.h | 11 ++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) (limited to 'include/cppunit/plugin') diff --git a/include/cppunit/plugin/DynamicLibraryManager.h b/include/cppunit/plugin/DynamicLibraryManager.h index 2a95f30..3b4f30b 100644 --- a/include/cppunit/plugin/DynamicLibraryManager.h +++ b/include/cppunit/plugin/DynamicLibraryManager.h @@ -92,6 +92,16 @@ private: */ Symbol doFindSymbol( const std::string &symbol ); + /*! Returns detailed information about doLoadLibrary() failure. + * + * Called just after a failed call to doLoadLibrary() to get extra + * error information. + * + * \return Detailed information about the failure of the call to + * doLoadLibrary() that just failed. + */ + std::string getLastErrorDetail() const; + /// Prevents the use of the copy constructor. DynamicLibraryManager( const DynamicLibraryManager © ); diff --git a/include/cppunit/plugin/DynamicLibraryManagerException.h b/include/cppunit/plugin/DynamicLibraryManagerException.h index 260df21..e0a1283 100644 --- a/include/cppunit/plugin/DynamicLibraryManagerException.h +++ b/include/cppunit/plugin/DynamicLibraryManagerException.h @@ -27,16 +27,17 @@ public: symbolNotFound }; - /// Failed to load the dynamic library - DynamicLibraryManagerException( const std::string &libraryName ); - - /// Symbol not found in the dynamic library + /// Failed to load the dynamic library or Symbol not found in the dynamic library. DynamicLibraryManagerException( const std::string &libraryName, - const std::string &symbol ); + const std::string &errorDetail, + Cause cause ); Cause getCause() const; + const char *what() const throw(); + private: + std::string m_message; Cause m_cause; }; -- cgit v1.2.1