Skip to content

Commit a9d469d

Browse files
committed
renumber tests properly
1 parent ee90ec6 commit a9d469d

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

t/10_baseline_ipv4_http.t

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ my $socket_out="";
2222
my $openssl_out="";
2323
my $socket_json="";
2424
my $openssl_json="";
25-
#FIXME: Blacklists we use to trigger an error, but likely we can skip that and instead we should?/could use
25+
#FIXME: Pattern we use to trigger an error, but likely we can skip that and instead we should?/could use the following??
2626
# @args="$prg $check2run $uri >/dev/null";
2727
# system("@args") == 0
2828
# or die ("FAILED: \"@args\" ");
@@ -38,23 +38,26 @@ unlink $tmp_json;
3838

3939
# Title
4040
printf "\n%s\n", "Baseline unit test IPv4 against \"$uri\"";
41-
42-
#1
4341
$socket_out = `$prg $check2run $uri 2>&1`;
4442
$socket_json = json($tmp_json);
43+
44+
#1
4545
unlike($socket_out, qr/$socket_errors/, "via sockets, checking terminal output");
4646
$tests++;
47+
48+
#2
4749
unlike($socket_json, qr/$json_errors/, "via sockets checking JSON output");
4850
$tests++;
4951

5052
unlink $tmp_json;
5153

52-
53-
#2
54+
#3
5455
$openssl_out = `$prg --ssl-native $check2run $uri 2>&1`;
5556
$openssl_json = json($tmp_json);
5657
unlike($openssl_out, qr/$openssl_errors/, "via (builtin) OpenSSL, checking terminal output");
5758
$tests++;
59+
60+
#4
5861
unlike($openssl_json, qr/$json_errors/, "via OpenSSL (builtin) checking JSON output");
5962
$tests++;
6063

0 commit comments

Comments
 (0)