Skip to content

Commit

Permalink
re tests: disable native-code compilation for huge modules
Browse files Browse the repository at this point in the history
Two generated modules contains too big functions for the
native-code compiler to handle (even the BEAM compiler
struggles when compiling them).
  • Loading branch information
bjorng committed Jan 30, 2010
1 parent fe14832 commit 24e2773
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/stdlib/test/re_testoutput1_replacement_test.erl
Expand Up @@ -18,6 +18,7 @@
%%
-module(re_testoutput1_replacement_test).
-compile(export_all).
-compile(no_native).
-include("test_server.hrl").
%% This file is generated by running run_pcre_tests:gen_repl_test("re_SUITE_data/testoutput1")
run() ->
Expand Down
1 change: 1 addition & 0 deletions lib/stdlib/test/re_testoutput1_split_test.erl
Expand Up @@ -18,6 +18,7 @@
%%
-module(re_testoutput1_split_test).
-compile(export_all).
-compile(no_native).
-include("test_server.hrl").
%% This file is generated by running run_pcre_tests:gen_split_test("re_SUITE_data/testoutput1")
join([]) -> [];
Expand Down
2 changes: 2 additions & 0 deletions lib/stdlib/test/run_pcre_tests.erl
Expand Up @@ -987,6 +987,7 @@ gen_split_test(OneFile) ->
{ok,F}= file:open(ErlFileName,[write]),
io:format(F,"-module(~s).~n",[ErlModule]),
io:format(F,"-compile(export_all).~n",[]),
io:format(F,"-compile(no_native).~n",[]),
io:format(F,"-include(\"test_server.hrl\").~n",[]),
%io:format(F,"-define(line,erlang:display(?LINE),).~n",[]),
io:format(F,"%% This file is generated by running ~w:gen_split_test(~p)~n",
Expand Down Expand Up @@ -1068,6 +1069,7 @@ gen_repl_test(OneFile) ->
{ok,F}= file:open(ErlFileName,[write]),
io:format(F,"-module(~s).~n",[ErlModule]),
io:format(F,"-compile(export_all).~n",[]),
io:format(F,"-compile(no_native).~n",[]),
io:format(F,"-include(\"test_server.hrl\").~n",[]),
io:format(F,"%% This file is generated by running ~w:gen_repl_test(~p)~n",
[?MODULE,OneFile]),
Expand Down

0 comments on commit 24e2773

Please sign in to comment.