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

-include_lib("test_server/include/test_server.hrl").

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


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

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