test_escape: invalid option -- 'c'
Japin Li <japinli@hotmail.com>
From: Japin Li <japinli@hotmail.com>
To: Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2025-02-18T03:12:13Z
Lists: pgsql-hackers
Hi, all
When I test test_escape, I find the usage of test_escape declares it
support -c option, however, when I use it, it complains it is an
invalid option.
Here is a patch to fix it.
diff --git a/src/test/modules/test_escape/test_escape.c b/src/test/modules/test_escape/test_escape.c
index 09303a00a20..7132e3a9316 100644
--- a/src/test/modules/test_escape/test_escape.c
+++ b/src/test/modules/test_escape/test_escape.c
@@ -824,7 +824,7 @@ main(int argc, char *argv[])
{NULL, 0, NULL, 0},
};
- while ((c = getopt_long(argc, argv, "vqh", long_options, &option_index)) != -1)
+ while ((c = getopt_long(argc, argv, "c:vqh", long_options, &option_index)) != -1)
{
switch (c)
{
--
Regrads,
Japin Li
Commits
-
test_escape: Fix output of --help
- bc018595408e 13.21 landed
- cecbb131e5eb 14.18 landed
- f9b76fd69681 15.13 landed
- 9fe0cad166df 16.9 landed
- e7f72185062c 17.5 landed
- 9b1cb58c5f21 18.0 landed
-
test_escape: Fix handling of short options in getopt_long()
- e9c95c6d3616 13.21 landed
- 691c32ba4b19 14.18 landed
- 9844eb67ccb7 15.13 landed
- 8d0756250313 16.9 landed
- a68a7594ca3a 17.5 landed
- aef6f907f631 18.0 landed