aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/alloc_SUITE_data/migration.erl
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2014-12-09 11:53:16 +0100
committerSverker Eriksson <[email protected]>2015-11-26 19:48:09 +0100
commit41e0c6e584d392ed0d5fbbc51a84418c4f7abcf5 (patch)
treee4bd842e5cc4a070b58fa88875be6a87dcdd4ee7 /erts/emulator/test/alloc_SUITE_data/migration.erl
parentef45d2c9f874354b17c2aca96de7b3306a9eb943 (diff)
downloadotp-41e0c6e584d392ed0d5fbbc51a84418c4f7abcf5.tar.gz
otp-41e0c6e584d392ed0d5fbbc51a84418c4f7abcf5.tar.bz2
otp-41e0c6e584d392ed0d5fbbc51a84418c4f7abcf5.zip
erts: Refactor alloc_SUITE to use NIFs instead of drivers
Diffstat (limited to 'erts/emulator/test/alloc_SUITE_data/migration.erl')
-rw-r--r--erts/emulator/test/alloc_SUITE_data/migration.erl10
1 files changed, 10 insertions, 0 deletions
diff --git a/erts/emulator/test/alloc_SUITE_data/migration.erl b/erts/emulator/test/alloc_SUITE_data/migration.erl
new file mode 100644
index 0000000000..440a99becd
--- /dev/null
+++ b/erts/emulator/test/alloc_SUITE_data/migration.erl
@@ -0,0 +1,10 @@
+-module(migration).
+
+-export([init/1, start/1, run/1, stop/1]).
+
+init(File) ->
+ ok = erlang:load_nif(File, 0).
+
+start(_) -> erlang:nif_error(not_loaded).
+run(_) -> erlang:nif_error(not_loaded).
+stop(_) -> erlang:nif_error(not_loaded).