]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: (fdisk) avoid hardcoding of errno string
authorPatrick Steinhardt <ps@pks.im>
Fri, 23 Aug 2019 13:32:58 +0000 (15:32 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 27 Aug 2019 12:25:32 +0000 (14:25 +0200)
commit2ede7ec214ad49e58b999c833e00e68cc052eb7e
tree6a4238cc9064c8507838544727b1c2d1965d49ea
parentf612c4c674e8e07fc40644432d8147a05c62058e
tests: (fdisk) avoid hardcoding of errno string

The test fdisk/oddinput hardcodes strings returned by strerror(3P) for
both the errors ENOENT and ENOTTY. As these strings are unportable,
convert the tests to use the test_strerror helper instead to convert
them with sed(1).

Signed-off-by: Patrick Steinhardt <ps@pks.im>
tests/expected/fdisk/oddinput
tests/helpers/test_strerror.c
tests/ts/fdisk/oddinput