comparison ssl_sni.t @ 1220:0af58b78df35

Tests: removed single quotes from system() calls. Single quotes were used to escape paths with spaces but are neither supported in the Windows CMD shell, nor sufficient without proper %%TESTDIR%% expansion.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 20 Sep 2017 14:46:51 +0300
parents 8ef51dbb5d69
children 8c764fd93b5e
comparison
equal deleted inserted replaced
1219:f373a718f646 1220:0af58b78df35
92 92
93 my $d = $t->testdir(); 93 my $d = $t->testdir();
94 94
95 foreach my $name ('localhost', 'example.com') { 95 foreach my $name ('localhost', 'example.com') {
96 system('openssl req -x509 -new ' 96 system('openssl req -x509 -new '
97 . "-config '$d/openssl.conf' -subj '/CN=$name/' " 97 . "-config $d/openssl.conf -subj /CN=$name/ "
98 . "-out '$d/$name.crt' -keyout '$d/$name.key' " 98 . "-out $d/$name.crt -keyout $d/$name.key "
99 . ">>$d/openssl.out 2>&1") == 0 99 . ">>$d/openssl.out 2>&1") == 0
100 or die "Can't create certificate for $name: $!\n"; 100 or die "Can't create certificate for $name: $!\n";
101 } 101 }
102 102
103 $t->run(); 103 $t->run();