Page MenuHomeFreeBSD

D60253.id188496.diff
No OneTemporary

D60253.id188496.diff

diff --git a/contrib/netbsd-tests/lib/libc/gen/t_assert.c b/contrib/netbsd-tests/lib/libc/gen/t_assert.c
--- a/contrib/netbsd-tests/lib/libc/gen/t_assert.c
+++ b/contrib/netbsd-tests/lib/libc/gen/t_assert.c
@@ -28,6 +28,12 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
+
+#if defined(__FreeBSD__)
+/* TODO: upstream this. */
+#undef NDEBUG
+#endif
+
#include <sys/cdefs.h>
__RCSID("$NetBSD: t_assert.c,v 1.3 2017/01/10 15:17:57 christos Exp $");
@@ -43,18 +49,6 @@
#include <string.h>
#include <unistd.h>
-#ifdef __FreeBSD__
-/* TODO: upstream this. */
-static void
-skip_if_ndebug_set(void)
-{
-
-#ifdef NDEBUG
- atf_tc_skip("Testcase requires code to be compiled without -DNDEBUG.");
-#endif
-}
-#endif
-
static void
disable_corefile(void)
{
@@ -86,10 +80,6 @@
pid_t pid;
int sta;
-#ifdef __FreeBSD__
- skip_if_ndebug_set();
-#endif
-
pid = fork();
ATF_REQUIRE(pid >= 0);
@@ -128,10 +118,6 @@
pid_t pid;
int sta;
-#ifdef __FreeBSD__
- skip_if_ndebug_set();
-#endif
-
pid = fork();
ATF_REQUIRE(pid >= 0);

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 3, 9:17 PM (22 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40147228
Default Alt Text
D60253.id188496.diff (1 KB)

Event Timeline