diff options
author | Richard Levitte <levitte@openssl.org> | 2018-02-22 23:39:01 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2018-02-28 18:48:05 +0100 |
commit | 000edfec502c0eed742d07e3ac02c2012381ee5e (patch) | |
tree | aaa68350b4305b73f2a6b35456d2bf525df4c68b /test/recipes/15-test_out_option.t | |
parent | b107e7f5572e6d441913ee921e828bc10d27a504 (diff) |
Adapt 15-test_out_option.t for more than just Unix
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4008)
Diffstat (limited to 'test/recipes/15-test_out_option.t')
-rw-r--r-- | test/recipes/15-test_out_option.t | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/recipes/15-test_out_option.t b/test/recipes/15-test_out_option.t index a4ca7cfa45..018ff3d00d 100644 --- a/test/recipes/15-test_out_option.t +++ b/test/recipes/15-test_out_option.t @@ -31,8 +31,8 @@ plan tests => 11; test_illegal_path('/usr/'); test_illegal_path('/'); -test_illegal_path('.'); -test_illegal_path('..'); +test_illegal_path('./'); +test_illegal_path('../'); # Test for trying to create a file in a non-exist directory my @chars = ("A".."Z", "a".."z", "0".."9"); @@ -44,7 +44,7 @@ test_legal_path('test.pem'); unlink 'test.pem'; sub test_illegal_path { - my ($path) = @_; + my $path = File::Spec->canonpath($_[0]); my $start = time(); ok(!run(app([ 'openssl', 'genrsa', '-out', $path, '16384'])), "invalid output path: $path"); @@ -54,7 +54,7 @@ sub test_illegal_path { } sub test_legal_path { - my ($path) = @_; + my $path = File::Spec->canonpath($_[0]); ok(run(app([ 'openssl', 'genrsa', '-out', $path, '2048'])), "valid output path: $path"); } |