git-strtol-test
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sat, 20 Mar 2021 23:38:37 +0000 (23:38 +0000)
committerAurelien Jarno <aurel32@debian.org>
Sat, 20 Mar 2021 23:38:37 +0000 (23:38 +0000)
commit107d38e6a5e2c05fa29fa9e266357448da56e627
tree319bdb980d1ba6c96b201a338c3bdd980be23843
parentfc377bc689098b35d155dfb2979d3b53cd707269
git-strtol-test

Committed for glibc 2.32

commit 183083c35972611e7786c7ee0c96d7da571631ed
Author: Carlos O'Donell <carlos@redhat.com>
Date:   Wed Apr 29 16:31:29 2020 -0400

    support: Set errno before testing it.

    In test-conainer we should set errno to 0 before calling strtol,
    and check after with TEST_COMPARE.

    In tst-support_capture_subprocess we should set errno to 0 before
    checking it after the call to strtol.

    Tested on x86_64.

Reviewed-by: DJ Delorie <dj@redhat.com>
Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-strtol-test.diff
support/test-container.c
support/tst-support_capture_subprocess.c