diff options
author | Frédéric Bérat <fberat@redhat.com> | 2023-06-14 10:52:07 +0200 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2023-06-19 09:15:05 -0400 |
commit | 8022fc7d5119a22e9e0ac72798f649385b0e167a (patch) | |
tree | f2cdb5c88d14c05e96395f0cdc99a6692ec0f8da /elf | |
parent | 20b6b8e8a50874dd189687df8f6f8a11d4813b34 (diff) | |
download | glibc-8022fc7d5119a22e9e0ac72798f649385b0e167a.zip glibc-8022fc7d5119a22e9e0ac72798f649385b0e167a.tar.gz glibc-8022fc7d5119a22e9e0ac72798f649385b0e167a.tar.bz2 |
tests: replace system by xsystem
With fortification enabled, system calls return result needs to be checked,
has it gets the __wur macro enabled.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'elf')
-rw-r--r-- | elf/tst-stackguard1.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/elf/tst-stackguard1.c b/elf/tst-stackguard1.c index 2e65e36..e03b242 100644 --- a/elf/tst-stackguard1.c +++ b/elf/tst-stackguard1.c @@ -26,6 +26,8 @@ #include <tls.h> #include <unistd.h> +#include <support/xstdlib.h> + static const char *command; static bool child; static uintptr_t stack_chk_guard_copy; @@ -108,7 +110,8 @@ do_test (void) dup2 (fds[1], 2); close (fds[1]); - system (command); + xsystem (command); + exit (0); } |