aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/nif_SUITE_data/tester.erl
blob: f955f99c9a8a5174225c0a702eda8ada127ee025 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
-module(tester).

-include_lib("common_test/include/ct.hrl").

-export([load_nif_lib/2, run/0]).

load_nif_lib(Config, LibName) ->
    Path = proplists:get_value(data_dir, Config),
    erlang:load_nif(filename:join(Path,LibName), []).

run() ->
    exit({nif_not_loaded,?MODULE,?LINE}).