]> git.ipfire.org Git - ipfire-3.x.git/blob - openssl/patches/openssl-1.1.0g-tests.patch
openssl: Update to 1.1.0g
[ipfire-3.x.git] / openssl / patches / openssl-1.1.0g-tests.patch
1 --- openssl-1.1.0g/test/recipes/40-test_rehash.t~ 2018-01-28 19:08:01.151912658 +0000
2 +++ openssl-1.1.0g/test/recipes/40-test_rehash.t 2018-01-28 19:09:19.408454430 +0000
3 @@ -23,7 +23,7 @@
4 plan skip_all => "test_rehash is not available on this platform"
5 unless run(app(["openssl", "rehash", "-help"]));
6
7 -plan tests => 5;
8 +plan tests => 3;
9
10 indir "rehash.$$" => sub {
11 prepare();
12 @@ -42,21 +42,6 @@
13 'Testing rehash operations on empty directory');
14 }, create => 1, cleanup => 1;
15
16 -indir "rehash.$$" => sub {
17 - prepare();
18 - chmod 0500, curdir();
19 - SKIP: {
20 - if (!ok(!open(FOO, ">unwritable.txt"),
21 - "Testing that we aren't running as a privileged user, such as root")) {
22 - close FOO;
23 - skip "It's pointless to run the next test as root", 1;
24 - }
25 - isnt(run(app(["openssl", "rehash", curdir()])), 1,
26 - 'Testing rehash operations on readonly directory');
27 - }
28 - chmod 0700, curdir(); # make it writable again, so cleanup works
29 -}, create => 1, cleanup => 1;
30 -
31 sub prepare {
32 my @pemsourcefiles = sort glob(srctop_file('test', "*.pem"));
33 my @destfiles = ();