]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - debug/test-strcpy_chk.c
Fix REALLOC_ZERO_BYTES_FREES comment to match C17
[thirdparty/glibc.git] / debug / test-strcpy_chk.c
index 6bb0fc0e871dd4dcea1bf8d49819891d88d0414b..80c07482aaa54e3bb7ae28e9972a48f65e179209 100644 (file)
@@ -1,5 +1,5 @@
 /* Test and measure __strcpy_chk functions.
-   Copyright (C) 1999-2017 Free Software Foundation, Inc.
+   Copyright (C) 1999-2021 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Written by Jakub Jelinek <jakub@redhat.com>, 1999.
 
@@ -15,7 +15,7 @@
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
+   <https://www.gnu.org/licenses/>.  */
 
 #ifndef STRCPY_RESULT
 # define STRCPY_RESULT(dst, len) dst
@@ -55,8 +55,9 @@ simple_strcpy_chk (char *dst, const char *src, size_t len)
 #include <signal.h>
 
 static int test_main (void);
-#define TEST_FUNCTION test_main ()
-#include "../test-skeleton.c"
+#define TEST_FUNCTION test_main
+#include <support/test-driver.c>
+#include <support/support.h>
 
 volatile int chk_fail_ok;
 jmp_buf chk_fail_buf;