aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2012-07-05 19:15:58 +0200
committerFredrik Gustafsson <[email protected]>2012-08-10 10:57:22 +0200
commit99070064280a7141220fac2ccad8e73acde16091 (patch)
treefd9a240d95c3e587da6ea333e5c8e2c35b6afb4d /lib
parentc4065f1b503d97cd05e9c5c791ec387a93875021 (diff)
downloadotp-99070064280a7141220fac2ccad8e73acde16091.tar.gz
otp-99070064280a7141220fac2ccad8e73acde16091.tar.bz2
otp-99070064280a7141220fac2ccad8e73acde16091.zip
minor cleanup
Diffstat (limited to 'lib')
-rw-r--r--lib/eunit/include/eunit.hrl13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/eunit/include/eunit.hrl b/lib/eunit/include/eunit.hrl
index db68d8ae60..fba840c3bd 100644
--- a/lib/eunit/include/eunit.hrl
+++ b/lib/eunit/include/eunit.hrl
@@ -25,11 +25,12 @@
%% will become undefined. NODEBUG also implies NOASSERT, unless testing
%% is enabled.
%%
-%% If including this file causes TEST to be defined, then NOASSERT will
-%% be undefined, even if it was previously defined and even if NODEBUG
-%% is defined. If both ASSERT and NOASSERT are defined before the file
-%% is included, then ASSERT takes precedence, and NOASSERT will become
-%% undefined regardless of TEST.
+%% Defining NOASSERT disables asserts. NODEBUG implies NOASSERT unless
+%% testing is enabled. If including this file causes TEST to be defined,
+%% then NOASSERT will be undefined, even if it was previously defined and
+%% even if NODEBUG is defined. If both ASSERT and NOASSERT are defined
+%% before the file is included, then ASSERT takes precedence, and NOASSERT
+%% will become undefined regardless of TEST.
%%
%% After including this file, EUNIT will be defined if and only if TEST
%% is defined.
@@ -127,9 +128,9 @@
current_function)))).
-endif.
--ifdef(NOASSERT).
%% The plain assert macro should be defined to do nothing if this file
%% is included when debugging/testing is turned off.
+-ifdef(NOASSERT).
-ifndef(assert).
-define(assert(BoolExpr),ok).
-endif.