git-strtol-test
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sat, 2 Oct 2021 12:47:40 +0000 (13:47 +0100)
committerAurelien Jarno <aurel32@debian.org>
Sat, 2 Oct 2021 12:47:40 +0000 (13:47 +0100)
commitc49f68fdf200bcf78d3b9a7b5601ae4ecb0aaac6
treee12580fa3a455fbd0535a9d78b256b1ced8f2c5c
parentdb14c574dc079b5c99b5aa62777abb1ff52858e0
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