diff options
author | Frédéric Bérat <fberat@redhat.com> | 2023-06-02 17:28:11 +0200 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2023-06-06 08:23:53 -0400 |
commit | f6a532fbd0f430dc4ded254d713d89fcbafc1b7e (patch) | |
tree | 877e228c5be9426c828c3bd79ad8c5d9515b420f /stdlib | |
parent | 8c4f69d711481a18c70cb9a6c0a5367604894320 (diff) | |
download | glibc-f6a532fbd0f430dc4ded254d713d89fcbafc1b7e.tar glibc-f6a532fbd0f430dc4ded254d713d89fcbafc1b7e.tar.gz glibc-f6a532fbd0f430dc4ded254d713d89fcbafc1b7e.tar.bz2 glibc-f6a532fbd0f430dc4ded254d713d89fcbafc1b7e.zip |
tests: Replace various function calls with their x variant
With fortification enabled, few function calls return result need to be
checked, has they get the __wur macro enabled.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/test-canon.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/stdlib/test-canon.c b/stdlib/test-canon.c index bf19b1f1b1..2874258722 100644 --- a/stdlib/test-canon.c +++ b/stdlib/test-canon.c @@ -27,6 +27,8 @@ #include <sys/param.h> #include <sys/stat.h> +#include <support/xunistd.h> + /* Prototype for our test function. */ extern int do_test (int argc, char *argv[]); #include <test-skeleton.c> @@ -159,7 +161,7 @@ do_test (int argc, char ** argv) } for (i = 0; i < (int) (sizeof (symlinks) / sizeof (symlinks[0])); ++i) - symlink (symlinks[i].value, symlinks[i].name); + xsymlink (symlinks[i].value, symlinks[i].name); int has_dir = mkdir ("doesExist", 0777) == 0; |