libtiff: Rename test_error_handlers to test_open_options

From 3727ce6fe1234ccd36c3164e9da126ed75405bd0 Mon Sep 17 00:00:00 2001
From: Even Rouault <[EMAIL REDACTED]>
Date: Tue, 22 Nov 2022 18:38:50 +0100
Subject: [PATCH] Rename test_error_handlers to test_open_options

---
 test/CMakeLists.txt                                 | 8 ++++----
 test/Makefile.am                                    | 6 +++---
 test/{test_error_handlers.c => test_open_options.c} | 6 +++---
 3 files changed, 10 insertions(+), 10 deletions(-)
 rename test/{test_error_handlers.c => test_open_options.c} (98%)

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
similarity index 98%
rename from test/test_error_handlers.c
rename to 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;
 }