Skip to content

Commit

Permalink
erts: Skip driver_SUITE:thr_free_drv for VM without threads
Browse files Browse the repository at this point in the history
  • Loading branch information
sverker committed Feb 5, 2014
1 parent eb3aa83 commit c3fb1d5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion erts/emulator/test/driver_SUITE.erl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 1997-2013. All Rights Reserved.
%% Copyright Ericsson AB 1997-2014. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
Expand Down Expand Up @@ -1945,6 +1945,14 @@ otp_9302(Config) when is_list(Config) ->
end.

thr_free_drv(Config) when is_list(Config) ->
case erlang:system_info(threads) of
false ->
{skipped, "No thread support"};
true ->
thr_free_drv_do(Config)
end.

thr_free_drv_do(Config) ->
?line Path = ?config(data_dir, Config),
?line erl_ddll:start(),
?line ok = load_driver(Path, thr_free_drv),
Expand Down

0 comments on commit c3fb1d5

Please sign in to comment.