This is an automated email from the ASF dual-hosted git repository.

reshke pushed a commit to branch REL_2_STABLE
in repository https://gitbox.apache.org/repos/asf/cloudberry.git

commit b32f4df4c15a6ac98cf7bb4eb923285dd2b82850
Author: Michael Paquier <[email protected]>
AuthorDate: Wed Feb 19 09:45:59 2025 +0900

    test_escape: Fix handling of short options in getopt_long()
    
    This addresses two errors in the module, based on the set of options
    supported:
    - '-c', for --conninfo, was not listed.
    - '-f', for --force-unsupported, was not listed.
    
    While on it, these are now listed in an alphabetical order.
    
    Author: Japin Li
    Discussion: 
https://postgr.es/m/me0p300mb04451fb20ce0346a59c25cadb6...@me0p300mb0445.ausp300.prod.outlook.com
    Backpatch-through: 13
---
 src/test/modules/test_escape/test_escape.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/modules/test_escape/test_escape.c 
b/src/test/modules/test_escape/test_escape.c
index 09303a00a20..a8e9c3cb518 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:fhqv", long_options, 
&option_index)) != -1)
        {
                switch (c)
                {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to