aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugger/test
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-11-17 14:20:05 +0100
committerBjörn Gustavsson <[email protected]>2017-11-17 15:33:05 +0100
commit1107083935fbdb8f8a7ece9549d8203652c4fec6 (patch)
treebfcca050d92d0f095c9b590d154e1b23700e2494 /lib/debugger/test
parentd99803e7625e474dee40f0dfebf2b8092add0336 (diff)
downloadotp-1107083935fbdb8f8a7ece9549d8203652c4fec6.tar.gz
otp-1107083935fbdb8f8a7ece9549d8203652c4fec6.tar.bz2
otp-1107083935fbdb8f8a7ece9549d8203652c4fec6.zip
Avoid using the efile driver in test suites
The efile driver will soon be reimplemented as a BIF. Instead of opening a port based on efile, use hd(erlang:ports()). It is a reasonable safe assumption that the runtime will continue to use use at least some ports.
Diffstat (limited to 'lib/debugger/test')
-rw-r--r--lib/debugger/test/guard_SUITE.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/debugger/test/guard_SUITE.erl b/lib/debugger/test/guard_SUITE.erl
index f7874f79df..e781ea932f 100644
--- a/lib/debugger/test/guard_SUITE.erl
+++ b/lib/debugger/test/guard_SUITE.erl
@@ -390,7 +390,7 @@ all_types() ->
{atom, xxxx},
{ref, make_ref()},
{pid, self()},
- {port, open_port({spawn, efile}, [])},
+ {port, make_port()},
{function, fun(X) -> X+1, "" end},
{binary, list_to_binary([])}].
@@ -435,6 +435,9 @@ type_test(binary, X) when binary(X) ->
type_test(function, X) when function(X) ->
function.
+make_port() ->
+ hd(erlang:ports()).
+
const_guard(Config) when is_list(Config) ->
if
(0 == 0) and ((0 == 0) or (0 == 0)) ->