Skip to content

Commit 0581892

Browse files
committed
Number each check / make it work under MacOS
1 parent 130da03 commit 0581892

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

t/00_testssl_help.t

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,42 @@ printf "\n%s\n", "Testing whether just calling \"./testssl.sh\" produces no erro
2424
my $info = stat($prg);
2525
my $retMode = $info->mode;
2626

27+
#1
2728
is($retMode & 0400, 0400, "Checking \"./testssl.sh\" for read permission");
2829
$tests++;
2930

31+
#2
3032
is($retMode & 0100, 0100, "Checking \"./testssl.sh\" for execute permission");
3133
$tests++;
3234

33-
$fileout = `timeout 10 bash $prg 2>&1`;
35+
$fileout = `bash $prg 2>&1`;
3436
my $retval=$?;
3537

38+
#3
3639
unlike($fileout, qr/$error_regexp1/, "regex 1");
3740
$tests++;
3841

42+
#4
3943
unlike($fileout, qr/$error_regexp2/, "regex 2");
4044
$tests++;
4145

46+
#5
4247
unlike($fileout, qr/$error_regexp3/, "regex 3");
4348
$tests++;
4449

50+
#6
4551
unlike($fileout, qr/$error_regexp4/, "regex 4");
4652
$tests++;
4753

54+
#7
4855
unlike($fileout, qr/$error_regexp5/, "regex 5");
4956
$tests++;
5057

58+
#8
5159
is($retval, 0, "return value should be equal zero: \"$retval\"");
5260
$tests++;
5361

62+
#9
5463
$out=`grep -E "$debug_regexp" $prg`;
5564
unlike($out, qr/$debug_regexp/, "Debug RegEx");
5665
$tests++;

0 commit comments

Comments
 (0)