aboutsummaryrefslogtreecommitdiffstats
path: root/lib/eunit/include/eunit.hrl
diff options
context:
space:
mode:
authorZandra Hird <[email protected]>2015-05-28 10:04:00 +0200
committerZandra Hird <[email protected]>2015-05-28 10:04:00 +0200
commitd11615cf24964b45e7fc488acaa03b54cbe16af3 (patch)
tree8047a0c613eea69a92ce869ff481b3c6147ebb27 /lib/eunit/include/eunit.hrl
parent2925fbba49237ff6b6e2691f52c4afb2c0447e46 (diff)
downloadotp-d11615cf24964b45e7fc488acaa03b54cbe16af3.tar.gz
otp-d11615cf24964b45e7fc488acaa03b54cbe16af3.tar.bz2
otp-d11615cf24964b45e7fc488acaa03b54cbe16af3.zip
Revert "Add ?assertReceive(Guard, Timeout) macro to eunit"
This reverts commit e56cf8d9846e51ae88fa72c8b0992d81da6fd7d5.
Diffstat (limited to 'lib/eunit/include/eunit.hrl')
-rw-r--r--lib/eunit/include/eunit.hrl20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/eunit/include/eunit.hrl b/lib/eunit/include/eunit.hrl
index 8a829396ec..53d291430d 100644
--- a/lib/eunit/include/eunit.hrl
+++ b/lib/eunit/include/eunit.hrl
@@ -166,26 +166,6 @@
%% This is mostly a convenience which gives more detailed reports.
%% Note: Guard is a guarded pattern, and can not be used for value.
-ifdef(NOASSERT).
--define(assertReceive(Guard, Timeout), ok).
--else.
--define(assertReceive(Guard, Timeout),
- begin
- ((fun () ->
- receive (Guard) -> ok
- after Timeout -> erlang:error({assertReceive_timedout,
- [{module, ?MODULE},
- {line, ?LINE},
- {pattern, (??Guard)},
- {timeout, __V}]})
- end
- end)())
- end).
--endif.
--define(_assertReceive(Guard, Timeout), ?_test(?assertReceive(Guard, Timeout))).
-
-%% This is mostly a convenience which gives more detailed reports.
-%% Note: Guard is a guarded pattern, and can not be used for value.
--ifdef(NOASSERT).
-define(assertMatch(Guard, Expr), ok).
-else.
-define(assertMatch(Guard, Expr),