Browse files

Avoid crash by skipping compilation_SUITE:on_load/1

compilation_SUITE:on_load/1 crashes if the compilation_SUITE module is
natively compiled. I don't know the exact reason for that, but it
seems to be that the module 'on_load' (which is not native-compiled)
is loaded and unloaded multiple times, and that it does not contain
exactly the same functions each time (inlining cause a function and a
function call to be removed).
  • Loading branch information...
1 parent 5a5fffe commit 497eae80e66aa73a195202e7386f08b5ded5b304 @bjorng bjorng committed Mar 15, 2010
Showing with 8 additions and 1 deletion.
  1. +8 −1 lib/compiler/test/compilation_SUITE.erl
@@ -158,7 +158,14 @@ split({int, N}, <<N:16,B:N/binary,T/binary>>) ->
+on_load(Config) when is_list(Config) ->
+ case test_server:is_native(?MODULE) of
+ false ->
+ try_it(on_load, Config);
+ true ->
+ {skip,"Native code causes crash"}
+ end.
beam_compiler_7(doc) ->
"Code snippet submitted from Ulf Wiger which fails in R3 Beam.";

0 comments on commit 497eae8

Please sign in to comment.