diff options
author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2006-03-13 15:27:42 (GMT) |
---|---|---|
committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2006-03-13 15:27:42 (GMT) |
commit | 325baa33d2d408391e52b36c3430ba8bfa3de2c4 (patch) | |
tree | 2d6103be5ed99b073af3e83e72aaa48f1d2f413e /Source/kwsys/testDynamicLoader.cxx | |
parent | 3c7aeb4073db6b7b66af203263dc2bbf4bffaf4a (diff) | |
download | CMake-325baa33d2d408391e52b36c3430ba8bfa3de2c4.zip CMake-325baa33d2d408391e52b36c3430ba8bfa3de2c4.tar.gz CMake-325baa33d2d408391e52b36c3430ba8bfa3de2c4.tar.bz2 |
ENH: Make test usable from command line
Diffstat (limited to 'Source/kwsys/testDynamicLoader.cxx')
-rw-r--r-- | Source/kwsys/testDynamicLoader.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/kwsys/testDynamicLoader.cxx b/Source/kwsys/testDynamicLoader.cxx index 82c494e..0eb9be3 100644 --- a/Source/kwsys/testDynamicLoader.cxx +++ b/Source/kwsys/testDynamicLoader.cxx @@ -78,9 +78,15 @@ int TestDynamicLoader(const char* libname, const char* symbol, int r1, int r2, i return 0; } -int main(int , char *[]) +int main(int argc, char *argv[]) { int res; + if( argc == 3 ) + { + // User specify a libname and symbol to check. + res = TestDynamicLoader(argv[1], argv[2],1,1,1); + return res; + } // Make sure that inexistant lib is giving correct result res = TestDynamicLoader("azerty_", "foo_bar",0,0,0); // Make sure that random binary file cannnot be assimilated as dylib |