aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2018-07-03 11:29:58 +0200
committerJohn Högberg <[email protected]>2018-07-05 12:39:38 +0200
commitfdb9fea10c79df2a5a2f49a5cc9cc1d6b12d2960 (patch)
tree9def7d3288d7f46d71500c5940aeb3458cbfead7 /lib/tools
parente746e48b165ee82761f76eabf954950102ddcd11 (diff)
downloadotp-fdb9fea10c79df2a5a2f49a5cc9cc1d6b12d2960.tar.gz
otp-fdb9fea10c79df2a5a2f49a5cc9cc1d6b12d2960.tar.bz2
otp-fdb9fea10c79df2a5a2f49a5cc9cc1d6b12d2960.zip
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.
Diffstat (limited to 'lib/tools')
-rw-r--r--lib/tools/test/instrument_SUITE.erl7
1 files 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, 0:64/unit:8>> ||
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