mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-21 13:34:34 +03:00
tests: Handle musl's ERANGE mapping
musl uses "Result not representable" for ERANGE, support this in addition to glibc's "Numerical result out of range". Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
This commit is contained in:
parent
b833f17aa0
commit
bd182584a1
@ -40,6 +40,6 @@ fi
|
||||
${CMD_PREFIX} ostree --repo=./testrepo show env > show-env.txt
|
||||
rm -rf testrepo testrepo-files
|
||||
assert_file_has_content_literal commit-invalid.txt 'Failed to convert SOURCE_DATE_EPOCH'
|
||||
assert_file_has_content_literal commit-overflowing.txt 'Parsing SOURCE_DATE_EPOCH: Numerical result out of range'
|
||||
assert_file_has_content commit-overflowing.txt 'Parsing SOURCE_DATE_EPOCH: \(Numerical result out of range\|Result not representable\)'
|
||||
assert_file_has_content_literal show-env.txt 'Date: 2009-02-13 23:31:30 +0000'
|
||||
echo "ok commit with env timestamp"
|
||||
|
Loading…
Reference in New Issue
Block a user