]> git.ipfire.org Git - thirdparty/glibc.git/commit
tst-realloc: do not check for errno on success [BZ #22611]
authorAurelien Jarno <aurelien@aurel32.net>
Fri, 29 Dec 2017 13:44:57 +0000 (14:44 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 29 Dec 2017 13:44:57 +0000 (14:44 +0100)
commitf8aa69be445f65bb36cb3ae9291423600da7d6d2
tree6e40358ddccf8f1cd56df174cfa6199bb16645f0
parent2bd86632b7cb97dc9002a23795e140fc880e1987
tst-realloc: do not check for errno on success [BZ #22611]

POSIX explicitly says that applications should check errno only after
failure, so the errno value can be clobbered on success as long as it
is not set to zero.

Changelog:
[BZ #22611]
* malloc/tst-realloc.c (do_test): Remove the test checking that errno
is unchanged on success.
ChangeLog
malloc/tst-realloc.c