aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTobias Schlager <[email protected]>2014-02-19 16:17:45 +0100
committerSiri Hansen <[email protected]>2014-02-24 11:02:15 +0100
commitd5b4bd041f625324862ff51f995cd224fb7a9831 (patch)
tree73c564dba4feeb9a89a88cabca5add7102d516ef /lib
parent1cb2aa3ebba6c3d3b0f722fe669f4407d1cf31ea (diff)
downloadotp-d5b4bd041f625324862ff51f995cd224fb7a9831.tar.gz
otp-d5b4bd041f625324862ff51f995cd224fb7a9831.tar.bz2
otp-d5b4bd041f625324862ff51f995cd224fb7a9831.zip
Make hipe non-upgradable by setting appup file empty
The reason for this is that if you are running a system with native compiled code, then you will have major problems with soft upgrade and the only reasonable way to go is to restart your emulator. Currently there is no instruction that will force ONLY a restart of the emulator, so the solution would be to hand write a relup with only a restart_emulator instruction. By letting hipe.appup be empty, systools will complain and not generate a relup - which should indicate that you might have to write your relup by hand.
Diffstat (limited to 'lib')
-rw-r--r--lib/hipe/main/hipe.appup.src5
-rw-r--r--lib/hipe/test/hipe_SUITE.erl4
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/hipe/main/hipe.appup.src b/lib/hipe/main/hipe.appup.src
index bd4a4f0671..02679fab21 100644
--- a/lib/hipe/main/hipe.appup.src
+++ b/lib/hipe/main/hipe.appup.src
@@ -15,7 +15,4 @@
%% under the License.
%%
%% %CopyrightEnd%
-{"%VSN%",
- [{<<".*">>,[{restart_application, hipe}]}],
- [{<<".*">>,[{restart_application, hipe}]}]
-}.
+{"%VSN%", [], []}.
diff --git a/lib/hipe/test/hipe_SUITE.erl b/lib/hipe/test/hipe_SUITE.erl
index 3beff95e90..8eb3967993 100644
--- a/lib/hipe/test/hipe_SUITE.erl
+++ b/lib/hipe/test/hipe_SUITE.erl
@@ -47,4 +47,6 @@ app(Config) when is_list(Config) ->
appup() ->
[{doc, "Test that the hipe appup file is ok"}].
appup(Config) when is_list(Config) ->
- ok = ?t:appup_test(hipe).
+ AppupFile = "hipe.appup",
+ AppupPath = filename:join([code:lib_dir(hipe), "ebin", AppupFile]),
+ {ok, [{_Vsn, [], []}]} = file:consult(AppupPath).