@matheusbsbs / matheus-bagliano / commits / 3fee1fe871
Fork 0

t9001: use older Getopt::Long boolean prefix '--no' rather than '--no-'

Since dbf5e1e9, the '--no-validate' option is a Getopt::Long boolean option. The '--no-' prefix (as in --no-validate) for boolean options is not supported in Getopt::Long version 2.32 which was released with Perl 5.8.0. This version only supports '--no' as in '--novalidate'. More recent versions of Getopt::Long, such as version 2.34, support either prefix. So use the older form in the tests. Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Brandon Casey committed Oct 10, 2008 at 19:21 UTC 3fee1fe87144360a1913eab86af9ad136c810076
1 file changed +1 -1
t/t9001-send-email.sh
+1 -1
@@ -109,7 +109,7 @@ test_expect_success 'allow long lines with --no-validate' '
109 --from="Example <nobody@example.com>" \
110 --to=nobody@example.com \
111 --smtp-server="$(pwd)/fake.sendmail" \
112 - --no-validate \
112 + --novalidate \
113 $patches longline.patch \
114 2>errors
115 '