Skip to content

Commit 3fee1fe

Browse files
drafnelspearce
authored andcommitted
t9001: use older Getopt::Long boolean prefix '--no' rather than '--no-'
Since dbf5e1e, 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 <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent e782e12 commit 3fee1fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t9001-send-email.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ test_expect_success 'allow long lines with --no-validate' '
109109
--from="Example <[email protected]>" \
110110
111111
--smtp-server="$(pwd)/fake.sendmail" \
112-
--no-validate \
112+
--novalidate \
113113
$patches longline.patch \
114114
2>errors
115115
'

0 commit comments

Comments
 (0)