diff options
author | Even Rouault <even.rouault@spatialys.com> | 2022-11-22 18:38:50 +0100 |
---|---|---|
committer | Even Rouault <even.rouault@spatialys.com> | 2022-11-23 02:09:40 +0100 |
commit | 3727ce6fe1234ccd36c3164e9da126ed75405bd0 (patch) | |
tree | 9e5cc6aaf602115269eb5f0d4ca3848923c02f68 /test | |
parent | 0ad56c292a1a4d3c7d2f777ea4684b5912443ff3 (diff) | |
download | libtiff-git-3727ce6fe1234ccd36c3164e9da126ed75405bd0.tar.gz |
Rename test_error_handlers to test_open_options
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 8 | ||||
-rw-r--r-- | test/Makefile.am | 6 | ||||
-rw-r--r-- | test/test_open_options.c (renamed from test/test_error_handlers.c) | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index d7c18584..7a1c97bc 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -175,10 +175,10 @@ target_sources(testtypes PRIVATE testtypes.c) target_link_libraries(testtypes PRIVATE tiff tiff_port) list(APPEND simple_tests testtypes) -add_executable(test_error_handlers ../placeholder.h) -target_sources(test_error_handlers PRIVATE test_error_handlers.c) -target_link_libraries(test_error_handlers PRIVATE tiff tiff_port) -list(APPEND simple_tests test_error_handlers) +add_executable(test_open_options ../placeholder.h) +target_sources(test_open_options PRIVATE test_open_options.c) +target_link_libraries(test_open_options PRIVATE tiff tiff_port) +list(APPEND simple_tests test_open_options) if(WEBP_SUPPORT AND EMSCRIPTEN) # Emscripten is pretty finnicky about linker flags. diff --git a/test/Makefile.am b/test/Makefile.am index bcb69a4f..64ae9493 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -75,7 +75,7 @@ endif if TIFF_TESTS check_PROGRAMS = \ ascii_tag long_tag short_tag strip_rw rewrite custom_dir custom_dir_EXIF_231 \ - defer_strile_loading defer_strile_writing test_directory test_error_handlers \ + defer_strile_loading defer_strile_writing test_directory test_open_options \ testtypes test_signed_tags $(JPEG_DEPENDENT_CHECK_PROG) $(STATIC_CHECK_PROGS) endif @@ -246,8 +246,8 @@ defer_strile_writing_SOURCES = defer_strile_writing.c defer_strile_writing_LDADD = $(LIBTIFF) test_directory_SOURCES = test_directory.c test_directory_LDADD = $(LIBTIFF) -test_error_handlers_SOURCES = test_error_handlers.c -test_error_handlers_LDADD = $(LIBTIFF) +test_open_options_SOURCES = test_open_options.c +test_open_options_LDADD = $(LIBTIFF) AM_CPPFLAGS = -I$(top_srcdir)/libtiff diff --git a/test/test_error_handlers.c b/test/test_open_options.c index f0e8e3ea..cec280fc 100644 --- a/test/test_error_handlers.c +++ b/test/test_open_options.c @@ -24,7 +24,7 @@ /* * TIFF Library * - * Test error handlers + * Test open options */ #include "tif_config.h" @@ -62,7 +62,7 @@ static int myErrorHandler(TIFF* tiff, void* user_data, const char* module, const return 1; } -int test_open_ext() +int test_error_handler() { int ret = 0; char error_buffer[ERROR_STRING_SIZE] = {0}; @@ -135,6 +135,6 @@ int test_open_ext() int main() { int ret = 0; - ret += test_open_ext(1); + ret += test_error_handler(); return ret; } |