test_escape: Fix handling of short options in getopt_long()
authorMichael Paquier <michael@paquier.xyz>
Wed, 19 Feb 2025 00:45:56 +0000 (09:45 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 19 Feb 2025 00:45:56 +0000 (09:45 +0900)
commit8d0756250313c42b20f55ac62bece342c82a783d
tree57b0025798eafb3f15b087fc0bf5b741425fe133
parent71eb35c0b18de96537bd3876ec9bf8075bfd484f
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: http://postgr.es/m/ME0P300MB04451FB20CE0346A59C25CADB6FA2@ME0P300MB0445.AUSP300.PROD.OUTLOOK.COM
Backpatch-through: 13
src/test/modules/test_escape/test_escape.c