diff options
author | Isaac David <isacdaavid@isacdaavid.info> | 2017-10-13 01:10:06 -0500 |
---|---|---|
committer | Isaac David <isacdaavid@isacdaavid.info> | 2017-10-13 01:10:06 -0500 |
commit | 2a7b161e6aa234aa5d434f47d3aedbe48ff7b251 (patch) | |
tree | 3ae4a263bcd7b8d5fa0ef5b41798404cc5613ca4 /GNUmakefile | |
parent | ce4bc72dbd590231186267c064ae1679c2ba1241 (diff) |
blacklist test: distinguish between empty string and empty line proper
Plenty of functions in libreblacklist are expected to print empty
lines, so as to signify that the archpkg at that line in the input has
an empty accompanying field.
Printing no newline and skipping to the next archpkg is therefore a
bug; one that would pass unnoticed by current tests. This is because
command substitution removes trailing whitespace. I.e. the following
is true:
[[ $(libreblacklist get-rep <<<'') == $(libreblacklist get-rep <<<$'\n') ]]
Process substitution and pipes preserve whitespace, but only the
latter work with #!/usr/bin/env roundup, so we use that.
Diffstat (limited to 'GNUmakefile')
0 files changed, 0 insertions, 0 deletions