lib/utils: add unit tests for async-signal-safe execvpe()
commit0b7172b3cffaae23fa182a2d160f85a934310db1
authorLaszlo Ersek <lersek@redhat.com>
Sun, 19 Mar 2023 09:41:39 +0000 (19 10:41 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Tue, 21 Mar 2023 06:02:23 +0000 (21 07:02 +0100)
tree3ff00d05d9bd185b1d2ab153ba7aa351f71ef2e6
parentaa696c0a6a9d39e72b182c4bf54493eec23cf1a9
lib/utils: add unit tests for async-signal-safe execvpe()

Don't try to test async-signal-safety, but strive to exercise as many as
possible paths through nbd_internal_execvpe_init() and
nbd_internal_fork_safe_execvpe().

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20230319094139.285312-3-lersek@redhat.com>
.gitignore
lib/Makefile.am
lib/test-fork-safe-execvpe.c [new file with mode: 0644]
lib/test-fork-safe-execvpe.sh [new file with mode: 0755]