diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-07-30 10:45:48 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-07-30 10:45:48 -0700 |
commit | 90421400977b3c80fdb8b887c61272a8f3ec0d18 (patch) | |
tree | 36078df61176c416dd93278907ba6bf6a5c851bc /Documentation/RelNotes/2.16.4.txt | |
parent | clone: replace strcmp by fspathcmp (diff) | |
download | tgif-90421400977b3c80fdb8b887c61272a8f3ec0d18.tar.xz |
test-dir-iterator: do not assume errno values
A few tests printed 'errno' as an integer and compared with
hardcoded integers; this is obviously not portable.
A two things to note are:
- the string obtained by strerror() is not portable, and cannot be
used for the purpose of these tests.
- there unfortunately isn't a portable way to map error numbers to
error names.
As we only care about a few selected errors, just map the error
number to the name before emitting for comparison.
Reported-by: Randall S. Becker <rsbecker@nexbridge.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/RelNotes/2.16.4.txt')
0 files changed, 0 insertions, 0 deletions