[trunk] add empty test about the issue 197. Updates issue 197
authorMickael Savinaud <savmickael@users.noreply.github.com>
Tue, 27 Nov 2012 09:11:16 +0000 (09:11 +0000)
committerMickael Savinaud <savmickael@users.noreply.github.com>
Tue, 27 Nov 2012 09:11:16 +0000 (09:11 +0000)
tests/unit/CMakeLists.txt
tests/unit/testempty0.c [new file with mode: 0644]

index 984cedc349caeb983a392ba0dace1cdb7749ba41..d6bca7ada048ff4d174ce6bb3d51336d3c7d6b56 100644 (file)
@@ -5,10 +5,14 @@ include_directories(
   ${OPENJPEG_SOURCE_DIR}/src/lib/openjp2
 )
 
+add_executable(testempty0 testempty0.c)
 add_executable(testempty1 testempty1.c)
 add_executable(testempty2 testempty2.c)
+
+target_link_libraries(testempty0 openjp2)
 target_link_libraries(testempty1 openjp2)
 target_link_libraries(testempty2 openjp2)
 
+add_test(testempty0 ${EXECUTABLE_OUTPUT_PATH}/testempty0)
 add_test(testempty1 ${EXECUTABLE_OUTPUT_PATH}/testempty1)
 add_test(testempty2 ${EXECUTABLE_OUTPUT_PATH}/testempty2)
diff --git a/tests/unit/testempty0.c b/tests/unit/testempty0.c
new file mode 100644 (file)
index 0000000..32d6f26
--- /dev/null
@@ -0,0 +1,3 @@
+#include <openjpeg.h>
+
+int main(int argc, char **argv) { return 0; }