diff options
author | Fabian Keil <fk@fabiankeil.de> | 2021-01-24 15:12:23 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-01-07 10:01:44 +0100 |
commit | 43eef423d6a6d43da27d5e96d08515e95df9d4c7 (patch) | |
tree | 8ab1d854b3ededb54504c5c04bb62e3d17673c39 | |
parent | 6e7ce9bbfb2e139d2cc4f58379ae1d18aa03468d (diff) | |
download | curl-43eef423d6a6d43da27d5e96d08515e95df9d4c7.tar.gz |
runtests.pl: properly print the test if it contains binary zeros
-rwxr-xr-x | tests/runtests.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index 7ac22035b..066a91bf5 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -3763,7 +3763,9 @@ sub singletest { # save the new version open(D, ">$otest"); - print D @entiretest; + foreach my $bytes (@entiretest) { + print D pack('a*', $bytes) or die "Failed to print '$bytes': $!"; + } close(D); # in case the process changed the file, reload it |