diff options
author | Richard Carlsson <[email protected]> | 2016-09-13 09:43:47 +0200 |
---|---|---|
committer | Richard Carlsson <[email protected]> | 2016-09-14 12:02:05 +0200 |
commit | 6a3f0814ca24ebf01be174fd89500007506f104f (patch) | |
tree | bf8d20ea13e0b7be4b7eaaeba30560518fae9b04 | |
parent | 86d1fb0865193cce4e308baa6472885a81033f10 (diff) | |
download | otp-6a3f0814ca24ebf01be174fd89500007506f104f.tar.gz otp-6a3f0814ca24ebf01be174fd89500007506f104f.tar.bz2 otp-6a3f0814ca24ebf01be174fd89500007506f104f.zip |
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.
-rw-r--r-- | lib/eunit/include/eunit.hrl | 4 |
1 files changed, 3 insertions, 1 deletions
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. |