From 6fd1f2a021e3dc5c564ad4b60117ae676a93c1b7 Mon Sep 17 00:00:00 2001 From: jpr Date: Tue, 6 Jun 2006 15:15:48 +0000 Subject: [PATCH] Add a *really* empty test, to know if gdcm dll is loadable or not :-( --- Testing/CMakeLists.txt | 1 + Testing/TestEmpty.cxx | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 Testing/TestEmpty.cxx diff --git a/Testing/CMakeLists.txt b/Testing/CMakeLists.txt index e0fae4eb..07cbf788 100644 --- a/Testing/CMakeLists.txt +++ b/Testing/CMakeLists.txt @@ -8,6 +8,7 @@ SET(GDCM_TESTS ${CXX_TEST_PATH}/gdcmTests) # add test that does not require data: # They usally return if no argument is given SET(TEST_SOURCES + TestEmpty.cxx TestUtil.cxx TestBug.cxx TestHash.cxx diff --git a/Testing/TestEmpty.cxx b/Testing/TestEmpty.cxx new file mode 100755 index 00000000..8ca1f7c8 --- /dev/null +++ b/Testing/TestEmpty.cxx @@ -0,0 +1,23 @@ +/*========================================================================= + + Program: gdcm + Module: $RCSfile: TestEmpty.cxx,v $ + Language: C++ + Date: $Date: 2006/06/06 15:15:48 $ + Version: $Revision: 1.1 $ + + Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de + l'Image). All rights reserved. See Doc/License.txt or + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ + +// Just to know, at test time, if the dll is loadable +int TestEmpty(int argc, char *argv[]) +{ + return 0; +} -- 2.45.1