From 6c091d7f990b3bac3fb9845cc774a67b1c71dd3c Mon Sep 17 00:00:00 2001 From: Edward Diener Date: Thu, 1 May 2014 23:21:05 -0400 Subject: [PATCH] Removed tests which involve undefined behavior. --- test/Jamfile.v2 | 12 ------------ test/isempty.cxx | 2 +- test/isempty_failure.c | 12 ------------ test/isempty_failure.cpp | 12 ------------ test/isempty_failure.cxx | 25 ------------------------- test/isempty_failure2.c | 12 ------------ test/isempty_failure2.cpp | 12 ------------ test/isempty_failure2.cxx | 25 ------------------------- 8 files changed, 1 insertion(+), 111 deletions(-) delete mode 100644 test/isempty_failure.c delete mode 100644 test/isempty_failure.cpp delete mode 100644 test/isempty_failure.cxx delete mode 100644 test/isempty_failure2.c delete mode 100644 test/isempty_failure2.cpp delete mode 100644 test/isempty_failure2.cxx diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 533e400..5e91c86 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -189,8 +189,6 @@ test-suite preprocessor_isempty test-suite preprocessor_isempty_nvm : [ compile isempty.cpp : BOOST_PP_VARIADICS=0 : isempty_nvm ] - [ compile-fail isempty_failure.cpp : BOOST_PP_VARIADICS=0 : isempty_failure_nvm ] - [ compile-fail isempty_failure2.cpp : BOOST_PP_VARIADICS=0 : isempty_failure2_nvm ] ; test-suite preprocessor_isempty_c @@ -216,14 +214,4 @@ test-suite preprocessor_isempty_c_nvm gcc:-std=c99 : isempty_c_nvm ] - [ compile-fail isempty_failure.c - : BOOST_PP_VARIADICS=0 - gcc:-std=c99 - : isempty_failure_c_nvm - ] - [ compile-fail isempty_failure2.c - : BOOST_PP_VARIADICS=0 - gcc:-std=c99 - : isempty_failure2_c_nvm - ] ; diff --git a/test/isempty.cxx b/test/isempty.cxx index bcf5b48..d0c3776 100644 --- a/test/isempty.cxx +++ b/test/isempty.cxx @@ -119,7 +119,7 @@ BEGIN BOOST_PP_IS_EMPTY(FUNC_GEN5) == 0 END BEGIN BOOST_PP_IS_EMPTY(FUNC_GEN8) == 0 END BEGIN BOOST_PP_IS_EMPTY(FUNC_GEN10) == 0 END -/* COMPILER ERROR */ +/* UNDEFINED BEHAVIOR */ // BEGIN BOOST_PP_IS_EMPTY(ATUPLE) == 0 END // BEGIN BOOST_PP_IS_EMPTY(ATUPLE_PLUS) == 1 END diff --git a/test/isempty_failure.c b/test/isempty_failure.c deleted file mode 100644 index db891ba..0000000 --- a/test/isempty_failure.c +++ /dev/null @@ -1,12 +0,0 @@ -# /* ************************************************************************** -# * * -# * (C) Copyright Edward Diener 2014. -# * Distributed under the Boost Software License, Version 1.0. (See -# * accompanying file LICENSE_1_0.txt or copy at -# * http://www.boost.org/LICENSE_1_0.txt) -# * * -# ************************************************************************** */ -# -# /* See http://www.boost.org for most recent version. */ -# -# include diff --git a/test/isempty_failure.cpp b/test/isempty_failure.cpp deleted file mode 100644 index db891ba..0000000 --- a/test/isempty_failure.cpp +++ /dev/null @@ -1,12 +0,0 @@ -# /* ************************************************************************** -# * * -# * (C) Copyright Edward Diener 2014. -# * Distributed under the Boost Software License, Version 1.0. (See -# * accompanying file LICENSE_1_0.txt or copy at -# * http://www.boost.org/LICENSE_1_0.txt) -# * * -# ************************************************************************** */ -# -# /* See http://www.boost.org for most recent version. */ -# -# include diff --git a/test/isempty_failure.cxx b/test/isempty_failure.cxx deleted file mode 100644 index 72fbac3..0000000 --- a/test/isempty_failure.cxx +++ /dev/null @@ -1,25 +0,0 @@ -# /* ************************************************************************** -# * * -# * (C) Copyright Edward Diener 2014. -# * Distributed under the Boost Software License, Version 1.0. (See -# * accompanying file LICENSE_1_0.txt or copy at -# * http://www.boost.org/LICENSE_1_0.txt) -# * * -# ************************************************************************** */ -# -# /* See http://www.boost.org for most recent version. */ -# -# include -# include - -#if !BOOST_PP_VARIADICS && (BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()) && (~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()) && (~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()) - -#define NAME &name - -BEGIN BOOST_PP_IS_EMPTY(NAME) == 0 END - -#else - -BEGIN 1 == 0 END - -#endif diff --git a/test/isempty_failure2.c b/test/isempty_failure2.c deleted file mode 100644 index cb5aa2e..0000000 --- a/test/isempty_failure2.c +++ /dev/null @@ -1,12 +0,0 @@ -# /* ************************************************************************** -# * * -# * (C) Copyright Edward Diener 2014. -# * Distributed under the Boost Software License, Version 1.0. (See -# * accompanying file LICENSE_1_0.txt or copy at -# * http://www.boost.org/LICENSE_1_0.txt) -# * * -# ************************************************************************** */ -# -# /* See http://www.boost.org for most recent version. */ -# -# include diff --git a/test/isempty_failure2.cpp b/test/isempty_failure2.cpp deleted file mode 100644 index cb5aa2e..0000000 --- a/test/isempty_failure2.cpp +++ /dev/null @@ -1,12 +0,0 @@ -# /* ************************************************************************** -# * * -# * (C) Copyright Edward Diener 2014. -# * Distributed under the Boost Software License, Version 1.0. (See -# * accompanying file LICENSE_1_0.txt or copy at -# * http://www.boost.org/LICENSE_1_0.txt) -# * * -# ************************************************************************** */ -# -# /* See http://www.boost.org for most recent version. */ -# -# include diff --git a/test/isempty_failure2.cxx b/test/isempty_failure2.cxx deleted file mode 100644 index eded627..0000000 --- a/test/isempty_failure2.cxx +++ /dev/null @@ -1,25 +0,0 @@ -# /* ************************************************************************** -# * * -# * (C) Copyright Edward Diener 2014. -# * Distributed under the Boost Software License, Version 1.0. (See -# * accompanying file LICENSE_1_0.txt or copy at -# * http://www.boost.org/LICENSE_1_0.txt) -# * * -# ************************************************************************** */ -# -# /* See http://www.boost.org for most recent version. */ -# -# include -# include - -#if !BOOST_PP_VARIADICS && (BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()) && (~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()) && (~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()) - -#define ATUPLE_PLUS (atuple) data - -BEGIN BOOST_PP_IS_EMPTY(ATUPLE_PLUS) == 0 END - -#else - -BEGIN 1 == 0 END - -#endif