comparison ssl_stapling.t @ 1995:d329b05e20fa

Tests: removed usage of "cat" and "grep" in tests. Both "cat" and "grep" might not be available on Windows. Instead, $t->read_file() is used, as it is already used in other places. To simplify checking logs as previously done with "grep", $t->grep_file() helper function is introduced.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 09 Aug 2024 05:18:51 +0300
parents f3573393f36f
children
comparison
equal deleted inserted replaced
1994:e9235c647f45 1995:d329b05e20fa
299 local $TODO = 'broken TLSv1.3 sigalgs in LibreSSL' 299 local $TODO = 'broken TLSv1.3 sigalgs in LibreSSL'
300 if $t->has_module('LibreSSL') 300 if $t->has_module('LibreSSL')
301 && !Net::SSLeay::constant("LIBRESSL_VERSION_NUMBER") 301 && !Net::SSLeay::constant("LIBRESSL_VERSION_NUMBER")
302 && test_tls13(); 302 && test_tls13();
303 303
304 like(`grep -F '[crit]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no crit'); 304 is($t->grep_file('error.log', '[crit]'), '', 'no crit');
305 305
306 } 306 }
307 307
308 ############################################################################### 308 ###############################################################################
309 309