From 6a3f0814ca24ebf01be174fd89500007506f104f Mon Sep 17 00:00:00 2001 From: Richard Carlsson Date: Tue, 13 Sep 2016 09:43:47 +0200 Subject: Ensure asserts are enabled in eunit.hrl When asserts were moved out to a separate header file, the automatic enabling of asserts when testing is enabled stopped working. --- lib/eunit/include/eunit.hrl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/eunit/include') diff --git a/lib/eunit/include/eunit.hrl b/lib/eunit/include/eunit.hrl index 7fd6c206a4..8a4cad1e7e 100644 --- a/lib/eunit/include/eunit.hrl +++ b/lib/eunit/include/eunit.hrl @@ -51,7 +51,9 @@ %% note that the main switch used within this file is NOTEST; however, %% both TEST and EUNIT may be used to check whether testing is enabled -ifndef(NOTEST). --undef(NOASSERT). % testing requires that assertions are enabled +-ifndef(ASSERT). +-define(ASSERT, true). % testing requires that assertions are enabled +-endif. -ifndef(TEST). -define(TEST, true). -endif. -- cgit v1.2.3