summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-10-19 14:05:51 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2012-10-19 14:05:51 +0100
commit094b0bdc46fe0670bb42ac9bb2816d4b9d84a9a4 (patch)
treef32e2adff0232c8db3c18a49b5cdc5603a8b46a2
parent0c9c139b5e328ef66699a109e5a3282f6d383bb0 (diff)
downloadrabbitmq-server-git-094b0bdc46fe0670bb42ac9bb2816d4b9d84a9a4.tar.gz
complain when running 'proper' and there are no tests
Twice already I wasted way too much time tracking this down.
-rw-r--r--src/rabbit_backing_queue_qc.erl9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rabbit_backing_queue_qc.erl b/src/rabbit_backing_queue_qc.erl
index e40d9b29e6..d658f0f0f4 100644
--- a/src/rabbit_backing_queue_qc.erl
+++ b/src/rabbit_backing_queue_qc.erl
@@ -391,4 +391,13 @@ drop_messages(Messages) ->
end
end.
+-else.
+
+-export([prop_disabled/0]).
+
+prop_disabled() ->
+ exit({compiled_without_proper,
+ "PropEr was not present during compilation of the test module. "
+ "Hence all tests are disabled."}).
+
-endif.