diff options
author | Jim Meyering <meyering@fb.com> | 2014-09-14 17:59:35 -0700 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2014-11-30 18:59:33 -0800 |
commit | 7a9323516d58819a4b27f917fc29c574cd5b9503 (patch) | |
tree | 9adcf9a962ec390b2f4efb1016ffaeaa3510a2b5 | |
parent | 32782c26e7341b310d337d2cb8961fb1ada68a6a (diff) | |
download | sed-7a9323516d58819a4b27f917fc29c574cd5b9503.tar.gz |
maint: turn on the test that prohibits use of HAVE_CONFIG_H
* cfg.mk (local-checks-to-skip): Remove the exemption here.
* testsuite/bug-regex10.c: Remove the use of the offending macro.
* testsuite/bug-regex11.c: Likewise.
* testsuite/bug-regex12.c: Likewise.
* testsuite/bug-regex13.c: Likewise.
* testsuite/bug-regex14.c: Likewise.
* testsuite/bug-regex15.c: Likewise.
* testsuite/bug-regex16.c: Likewise.
* testsuite/bug-regex21.c: Likewise.
* testsuite/bug-regex7.c: Likewise.
* testsuite/bug-regex8.c: Likewise.
* testsuite/bug-regex9.c: Likewise.
* testsuite/runptests.c: Likewise.
* testsuite/runtests.c: Likewise.
* testsuite/tst-boost.c: Likewise.
* testsuite/tst-pcre.c: Likewise.
* testsuite/tst-regex.c: Likewise.
* testsuite/tst-regex2.c: Likewise.
* testsuite/tst-rxspencer.c: Likewise.
-rw-r--r-- | cfg.mk | 1 | ||||
-rw-r--r-- | testsuite/bug-regex10.c | 2 | ||||
-rw-r--r-- | testsuite/bug-regex11.c | 2 | ||||
-rw-r--r-- | testsuite/bug-regex12.c | 2 | ||||
-rw-r--r-- | testsuite/bug-regex13.c | 2 | ||||
-rw-r--r-- | testsuite/bug-regex14.c | 2 | ||||
-rw-r--r-- | testsuite/bug-regex15.c | 2 | ||||
-rw-r--r-- | testsuite/bug-regex16.c | 2 | ||||
-rw-r--r-- | testsuite/bug-regex21.c | 2 | ||||
-rw-r--r-- | testsuite/bug-regex7.c | 2 | ||||
-rw-r--r-- | testsuite/bug-regex8.c | 2 | ||||
-rw-r--r-- | testsuite/bug-regex9.c | 2 | ||||
-rw-r--r-- | testsuite/runptests.c | 2 | ||||
-rw-r--r-- | testsuite/runtests.c | 6 | ||||
-rw-r--r-- | testsuite/tst-boost.c | 2 | ||||
-rw-r--r-- | testsuite/tst-pcre.c | 2 | ||||
-rw-r--r-- | testsuite/tst-regex.c | 2 | ||||
-rw-r--r-- | testsuite/tst-regex2.c | 2 | ||||
-rw-r--r-- | testsuite/tst-rxspencer.c | 2 |
19 files changed, 0 insertions, 41 deletions
@@ -40,7 +40,6 @@ local-checks-to-skip = \ sc_prohibit_atoi_atof \ sc_prohibit_doubled_word \ sc_prohibit_empty_lines_at_EOF \ - sc_prohibit_have_config_h \ sc_prohibit_magic_number_exit \ sc_prohibit_strcmp \ sc_prohibit_strncpy \ diff --git a/testsuite/bug-regex10.c b/testsuite/bug-regex10.c index 8006f87..aedc0ee 100644 --- a/testsuite/bug-regex10.c +++ b/testsuite/bug-regex10.c @@ -18,9 +18,7 @@ Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <locale.h> #include <stdio.h> diff --git a/testsuite/bug-regex11.c b/testsuite/bug-regex11.c index 48ad99f..b7ea6f7 100644 --- a/testsuite/bug-regex11.c +++ b/testsuite/bug-regex11.c @@ -18,9 +18,7 @@ Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <sys/types.h> #ifdef HAVE_MCHECK_H diff --git a/testsuite/bug-regex12.c b/testsuite/bug-regex12.c index cce2dd5..9319d29 100644 --- a/testsuite/bug-regex12.c +++ b/testsuite/bug-regex12.c @@ -18,9 +18,7 @@ Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <sys/types.h> #ifdef HAVE_MCHECK_H diff --git a/testsuite/bug-regex13.c b/testsuite/bug-regex13.c index 55d34e5..b87ee81 100644 --- a/testsuite/bug-regex13.c +++ b/testsuite/bug-regex13.c @@ -18,9 +18,7 @@ Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <sys/types.h> #ifdef HAVE_MCHECK_H diff --git a/testsuite/bug-regex14.c b/testsuite/bug-regex14.c index 93e603e..c105bb3 100644 --- a/testsuite/bug-regex14.c +++ b/testsuite/bug-regex14.c @@ -18,9 +18,7 @@ Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #define _REGEX_RE_COMP #include <sys/types.h> diff --git a/testsuite/bug-regex15.c b/testsuite/bug-regex15.c index 14707e8..97fc69d 100644 --- a/testsuite/bug-regex15.c +++ b/testsuite/bug-regex15.c @@ -1,8 +1,6 @@ /* Test for memory/CPU leak in regcomp. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <sys/types.h> #include <sys/time.h> diff --git a/testsuite/bug-regex16.c b/testsuite/bug-regex16.c index 7a1d3c8..c514a2e 100644 --- a/testsuite/bug-regex16.c +++ b/testsuite/bug-regex16.c @@ -1,8 +1,6 @@ /* Test re_compile_pattern error messages. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <stdio.h> #include <string.h> diff --git a/testsuite/bug-regex21.c b/testsuite/bug-regex21.c index de18731..7c4f57c 100644 --- a/testsuite/bug-regex21.c +++ b/testsuite/bug-regex21.c @@ -18,9 +18,7 @@ Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #ifdef HAVE_MCHECK_H #include <mcheck.h> diff --git a/testsuite/bug-regex7.c b/testsuite/bug-regex7.c index 33eb05b..92e44f9 100644 --- a/testsuite/bug-regex7.c +++ b/testsuite/bug-regex7.c @@ -18,9 +18,7 @@ Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <locale.h> #include <stdio.h> diff --git a/testsuite/bug-regex8.c b/testsuite/bug-regex8.c index fb4ed2a..7e807d4 100644 --- a/testsuite/bug-regex8.c +++ b/testsuite/bug-regex8.c @@ -18,9 +18,7 @@ Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <locale.h> #include <stdio.h> diff --git a/testsuite/bug-regex9.c b/testsuite/bug-regex9.c index b9dc6f9..fb5d7fe 100644 --- a/testsuite/bug-regex9.c +++ b/testsuite/bug-regex9.c @@ -18,9 +18,7 @@ Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <sys/types.h> #ifdef HAVE_MCHECK_H diff --git a/testsuite/runptests.c b/testsuite/runptests.c index a34dfb3..372a174 100644 --- a/testsuite/runptests.c +++ b/testsuite/runptests.c @@ -18,9 +18,7 @@ Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <sys/types.h> #include <regex.h> diff --git a/testsuite/runtests.c b/testsuite/runtests.c index 2f62315..325f240 100644 --- a/testsuite/runtests.c +++ b/testsuite/runtests.c @@ -22,11 +22,7 @@ PERFORMANCE OF THIS SOFTWARE. ******************************************************************/ - - -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <sys/types.h> #include <regex.h> @@ -34,8 +30,6 @@ PERFORMANCE OF THIS SOFTWARE. #include <stdlib.h> #include <string.h> - - struct a_test { int expected; diff --git a/testsuite/tst-boost.c b/testsuite/tst-boost.c index 3677abd..93e1821 100644 --- a/testsuite/tst-boost.c +++ b/testsuite/tst-boost.c @@ -18,9 +18,7 @@ Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <sys/types.h> #ifdef HAVE_MCHECK_H diff --git a/testsuite/tst-pcre.c b/testsuite/tst-pcre.c index 49ead17..33cf548 100644 --- a/testsuite/tst-pcre.c +++ b/testsuite/tst-pcre.c @@ -18,9 +18,7 @@ Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <sys/types.h> #ifdef HAVE_MCHECK_H diff --git a/testsuite/tst-regex.c b/testsuite/tst-regex.c index 698a175..0d10cd2 100644 --- a/testsuite/tst-regex.c +++ b/testsuite/tst-regex.c @@ -16,9 +16,7 @@ Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <alloca.h> #include <assert.h> diff --git a/testsuite/tst-regex2.c b/testsuite/tst-regex2.c index 1dc14ad..9eac569 100644 --- a/testsuite/tst-regex2.c +++ b/testsuite/tst-regex2.c @@ -1,6 +1,4 @@ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <errno.h> #include <fcntl.h> diff --git a/testsuite/tst-rxspencer.c b/testsuite/tst-rxspencer.c index 906eee3..e541b79 100644 --- a/testsuite/tst-rxspencer.c +++ b/testsuite/tst-rxspencer.c @@ -18,9 +18,7 @@ Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <sys/types.h> #ifdef HAVE_MCHECK_H |