about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux
diff options
context:
space:
mode:
authorFrederic Berat <fberat@redhat.com>2023-06-20 20:19:09 +0200
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2023-06-22 00:21:19 -0400
commit99f9ae4ed0ba9f2c84520b78fd0eeed96a7ed40e (patch)
tree67e9fcae91c38999b9694ce136570188564c9398 /sysdeps/unix/sysv/linux
parentd636339306d19beb486d6f3a0b364db845baf4e0 (diff)
downloadglibc-99f9ae4ed0ba9f2c84520b78fd0eeed96a7ed40e.tar.gz
glibc-99f9ae4ed0ba9f2c84520b78fd0eeed96a7ed40e.tar.xz
glibc-99f9ae4ed0ba9f2c84520b78fd0eeed96a7ed40e.zip
benchtests: fix warn unused result
Few tests needed to properly check for asprintf and system calls return
values with _FORTIFY_SOURCE enabled.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r--sysdeps/unix/sysv/linux/s390/tst-ptrace-singleblock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/s390/tst-ptrace-singleblock.c b/sysdeps/unix/sysv/linux/s390/tst-ptrace-singleblock.c
index e5cdb2b2a1..4631ec9f0b 100644
--- a/sysdeps/unix/sysv/linux/s390/tst-ptrace-singleblock.c
+++ b/sysdeps/unix/sysv/linux/s390/tst-ptrace-singleblock.c
@@ -24,6 +24,7 @@
 #include <sys/types.h>
 #include <sys/uio.h>
 #include <elf.h>
+#include <support/xstdlib.h>
 #include <support/xunistd.h>
 #include <support/check.h>
 #include <string.h>
@@ -44,7 +45,7 @@ tracee_func (int pid)
   char str[80];
   sprintf (str, "cat /proc/%d/maps", pid);
   puts (str);
-  system (str);
+  xsystem (str);
   fflush (stdout);
 
   TEST_VERIFY_EXIT (ptrace (PTRACE_TRACEME) == 0);