]> sourceware.org Git - glibc.git/commitdiff
Add debug IFUNC tests
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 20 Oct 2012 05:02:47 +0000 (22:02 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 20 Oct 2012 05:02:47 +0000 (22:02 -0700)
ChangeLog
debug/Makefile
debug/test-stpcpy_chk-ifunc.c [new file with mode: 0644]
debug/test-stpcpy_chk.c
debug/test-strcpy_chk-ifunc.c [new file with mode: 0644]
debug/test-strcpy_chk.c

index eb60959bec121b2ae2074ba313ba084aa751d657..5caa361627777a9c2affe8344659997fd7c470a5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * debug/Makefile (tests-ifunc): New variable.
+       (tests): Add $(tests-ifunc).
+       * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
+       * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
+       * debug/test-stpcpy_chk-ifunc.c: New file.
+       * debug/test-strcpy_chk-ifunc.c: Likewise.
+
 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
        [BZ #13601]
index ae5b674a96d75a7cb150a8899b7eb954b7d4b131..04dd79981a9c8e9187192b393a99139407ecc5df 100644 (file)
@@ -126,6 +126,9 @@ tests = backtrace-tst tst-longjmp_chk tst-chk1 tst-chk2 tst-chk3 \
        tst-chk4 tst-chk5 tst-chk6 tst-lfschk4 tst-lfschk5 tst-lfschk6 \
        tst-longjmp_chk2
 
+tests-ifunc := $(stpcpy_chk strcpy_chk:%=test-%-ifunc)
+tests += $(tests-ifunc)
+
 extra-libs = libSegFault libpcprofile
 extra-libs-others = $(extra-libs)
 
diff --git a/debug/test-stpcpy_chk-ifunc.c b/debug/test-stpcpy_chk-ifunc.c
new file mode 100644 (file)
index 0000000..1b2bad1
--- /dev/null
@@ -0,0 +1,20 @@
+/* Test and measure IFUNC implementations of stpcpy checking function.
+   Copyright (C) 2012 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   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/>.  */
+
+#define TEST_IFUNC 1
+#include "test-stpcpy_chk.c"
index f7f9a546366958bf3e931305a04d057cba0e4e76..8e2d2d9e02a289f240dbf18ddc251161723092ed 100644 (file)
@@ -1,5 +1,5 @@
 /* Test and measure stpcpy checking functions.
-   Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc.
+   Copyright (C) 1999-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Written by Jakub Jelinek <jakub@redhat.com>, 1999.
 
@@ -19,6 +19,7 @@
 
 #define STRCPY_RESULT(dst, len) ((dst) + (len))
 #define TEST_MAIN
+#define TEST_NAME "stpcpy_chk"
 #include "../string/test-string.h"
 
 extern void __attribute__ ((noreturn)) __chk_fail (void);
diff --git a/debug/test-strcpy_chk-ifunc.c b/debug/test-strcpy_chk-ifunc.c
new file mode 100644 (file)
index 0000000..73ed226
--- /dev/null
@@ -0,0 +1,20 @@
+/* Test and measure IFUNC implementations of strcpy checking function.
+   Copyright (C) 2012 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   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/>.  */
+
+#define TEST_IFUNC 1
+#include "test-strcpy_chk.c"
index 25363628936d937728d129cbfaeb499af8845caa..fb9bc78d458959ca0a95d0fe3b1f24d7760643be 100644 (file)
@@ -1,5 +1,5 @@
 /* Test and measure __strcpy_chk functions.
-   Copyright (C) 1999, 2002, 2003, 2004 Free Software Foundation, Inc.
+   Copyright (C) 1999-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Written by Jakub Jelinek <jakub@redhat.com>, 1999.
 
@@ -20,6 +20,7 @@
 #ifndef STRCPY_RESULT
 # define STRCPY_RESULT(dst, len) dst
 # define TEST_MAIN
+# define TEST_NAME "strcpy_chk"
 # include "../string/test-string.h"
 
 extern void __attribute__ ((noreturn)) __chk_fail (void);
This page took 0.111001 seconds and 5 git commands to generate.