diff options
author | Richard Levitte <levitte@openssl.org> | 2016-01-14 13:15:45 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-01-14 13:15:45 +0100 |
commit | 9b56815d5f91180e2092d3e578054b8099100a48 (patch) | |
tree | 21ee40561726f01fc65adba7443e8e535ca85c0e /test/recipes/tconversion.pl | |
parent | 67949615d25ead969c12e0f39370fef866df1704 (diff) | |
download | openssl-9b56815d5f91180e2092d3e578054b8099100a48.tar.gz |
Do not use redirection on binary files
On some platforms, the shell will determine what attributes a file
will have, so while the program might think it's safely outputting
binary data, it's not always true.
For the sake of the tests, it's therefore safer to use -out than to
use redirection.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/recipes/tconversion.pl')
-rw-r--r-- | test/recipes/tconversion.pl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/recipes/tconversion.pl b/test/recipes/tconversion.pl index 07e34060f3..0f9b03b481 100644 --- a/test/recipes/tconversion.pl +++ b/test/recipes/tconversion.pl @@ -53,8 +53,9 @@ sub tconversion { ok(run(app([@cmd, "-in", "$testtype-fff.p", "-inform", "p", - "-outform", $to], - stdout => "$testtype-f.$to")), "p -> $to"); + "-out", "$testtype-f.$to", + "-outform", $to])), + "p -> $to"); } foreach my $to (@conversionforms) { @@ -62,8 +63,9 @@ sub tconversion { ok(run(app([@cmd, "-in", "$testtype-f.$from", "-inform", $from, - "-outform", $to], - stdout => "$testtype-ff.$from$to")), "$from -> $to"); + "-out", "$testtype-ff.$from$to", + "-outform", $to])), + "$from -> $to"); } } |