From fdb9fea10c79df2a5a2f49a5cc9cc1d6b12d2960 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20H=C3=B6gberg?= Date: Tue, 3 Jul 2018 11:29:58 +0200 Subject: Make instrument suite more stable after PR-1854 The SSA compiler branch is smart enough to recognize that the code past 'after infinity' is unreachable, so our test vectors weren't always kept alive. --- lib/tools/test/instrument_SUITE.erl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/tools/test/instrument_SUITE.erl b/lib/tools/test/instrument_SUITE.erl index 33800c5934..33259df58f 100644 --- a/lib/tools/test/instrument_SUITE.erl +++ b/lib/tools/test/instrument_SUITE.erl @@ -221,7 +221,7 @@ verify_carriers_output(#{ histogram_start := HistStart, ct:fail("Carrier count is ~p, expected at least ~p (SBC).", [CarrierCount, GenSBCCount]); CarrierCount >= GenSBCCount -> - ct:pal("Found ~p blocks, required at least ~p (SBC)." , + ct:pal("Found ~p carriers, required at least ~p (SBC)." , [CarrierCount, GenSBCCount]) end, @@ -327,8 +327,9 @@ generate_test_blocks() -> MBCs = [<> || I <- lists:seq(1, ?GENERATED_MBC_BLOCK_COUNT)], Runner ! Ref, - receive after infinity -> ok end, - unreachable ! {SBCs, MBCs} + receive + gurka -> gaffel ! {SBCs, MBCs} + end end), receive Ref -> ok -- cgit v1.2.3