summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/testDynamicLoader.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-03-03 15:47:06 (GMT)
committerBrad King <brad.king@kitware.com>2007-03-03 15:47:06 (GMT)
commit0edbb68352475ae48dd31dde7384dd0816a8fb39 (patch)
tree24c06cb86f783cee05bd43508ba2d86414cc30d4 /Source/kwsys/testDynamicLoader.cxx
parent42e1ffb7f5ef5c8a570e08f4a587f34458172325 (diff)
downloadCMake-0edbb68352475ae48dd31dde7384dd0816a8fb39.zip
CMake-0edbb68352475ae48dd31dde7384dd0816a8fb39.tar.gz
CMake-0edbb68352475ae48dd31dde7384dd0816a8fb39.tar.bz2
ENH: Cleaned up KWSys tests to use test drivers.
Diffstat (limited to 'Source/kwsys/testDynamicLoader.cxx')
-rw-r--r--Source/kwsys/testDynamicLoader.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/testDynamicLoader.cxx b/Source/kwsys/testDynamicLoader.cxx
index b13dec6..d9d72d5 100644
--- a/Source/kwsys/testDynamicLoader.cxx
+++ b/Source/kwsys/testDynamicLoader.cxx
@@ -88,7 +88,7 @@ int TestDynamicLoader(const char* libname, const char* symbol, int r1, int r2, i
return 0;
}
-int main(int argc, char *argv[])
+int testDynamicLoader(int argc, char *argv[])
{
#if defined(_WIN32)
SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);
@@ -113,7 +113,7 @@ int main(int argc, char *argv[])
res += TestDynamicLoader("libdl.so", "TestDynamicLoader",1,0,1);
#endif
// Now try on the generated library
- kwsys_stl::string libname = GetLibName("testDynload");
+ kwsys_stl::string libname = GetLibName(KWSYS_NAMESPACE_STRING "TestDynload");
res += TestDynamicLoader(libname.c_str(), "dummy",1,0,1);
res += TestDynamicLoader(libname.c_str(), "TestDynamicLoaderSymbolPointer",1,1,1);
res += TestDynamicLoader(libname.c_str(), "_TestDynamicLoaderSymbolPointer",1,0,1);