[cig-commits] r13183 - cs/cigma/trunk/tests/libcigma
luis at geodynamics.org
luis at geodynamics.org
Wed Oct 29 15:12:07 PDT 2008
Author: luis
Date: 2008-10-29 15:12:06 -0700 (Wed, 29 Oct 2008)
New Revision: 13183
Modified:
cs/cigma/trunk/tests/libcigma/MiscTest.cpp
Log:
Test whether we can load external data during unit test
Modified: cs/cigma/trunk/tests/libcigma/MiscTest.cpp
===================================================================
--- cs/cigma/trunk/tests/libcigma/MiscTest.cpp 2008-10-29 22:12:05 UTC (rev 13182)
+++ cs/cigma/trunk/tests/libcigma/MiscTest.cpp 2008-10-29 22:12:06 UTC (rev 13183)
@@ -1,4 +1,6 @@
#include "MiscTest.h"
+#include <cstdlib>
+#include <cstdio>
using namespace libcigma;
@@ -7,6 +9,13 @@
void MiscTest::test_000()
{
+ FILE *fp = fopen("tests/data/README", "r");
+ bool found = (fp != NULL);
+ if (found)
+ {
+ fclose(fp);
+ }
+ CPPUNIT_ASSERT(found);
}
void MiscTest::test_001()
More information about the CIG-COMMITS
mailing list