aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-09-15 10:08:34 +0200
committerBjörn Gustavsson <[email protected]>2016-09-15 10:08:34 +0200
commit060949fb1ee7d1af366372b43dde5add421a5f73 (patch)
tree32fbdacea2f204dca081e83150cd0548e922c38c
parent20baf4c3d2a9e3d814ddc46f45d81b3fe20805b8 (diff)
parentcebef1207eca1cdc8c601b172988a74fd0858efa (diff)
downloadotp-060949fb1ee7d1af366372b43dde5add421a5f73.tar.gz
otp-060949fb1ee7d1af366372b43dde5add421a5f73.tar.bz2
otp-060949fb1ee7d1af366372b43dde5add421a5f73.zip
Merge branch 'maint'
* maint: Ensure asserts are enabled in eunit.hrl
-rw-r--r--lib/eunit/include/eunit.hrl4
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.