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

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

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


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

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