Skip to content

Commit

Permalink
Make port_command/3 auto-imported
Browse files Browse the repository at this point in the history
  • Loading branch information
bufflig committed Jun 2, 2010
1 parent 1b8f86d commit 750f53b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions erts/emulator/test/busy_port_SUITE.erl
Expand Up @@ -182,7 +182,7 @@ system_monitor(Config) when is_list(Config) ->
?line Master ! {Owner, {command, "u"}},
?line {Busy,beta} = rec(Void),
?line Void = rec(Void),
?line NewMonitor = erlang:system_monitor(OldMonitor),
?line _NewMonitor = erlang:system_monitor(OldMonitor),
?line OldMonitor = erlang:system_monitor(),
?line OldMonitor = erlang:system_monitor(OldMonitor),
%%
Expand Down Expand Up @@ -361,7 +361,6 @@ soft_busy_driver(Config) when is_list(Config) ->
hs_test(Config, false).

hs_test(Config, HardBusy) when is_list(Config) ->
?line Me = self(),
?line DrvName = case HardBusy of
true -> 'hard_busy_drv';
false -> 'soft_busy_drv'
Expand Down Expand Up @@ -479,7 +478,7 @@ hs_busy_pcmd(Prt, Opts, StartFun, EndFun) ->
Tester ! {self(), doing_port_command},
Start = os:timestamp(),
Res = try {return,
erlang:port_command(Prt, [], Opts)}
port_command(Prt, [], Opts)}
catch Exception:Error -> {Exception, Error}
end,
End = os:timestamp(),
Expand Down
1 change: 1 addition & 0 deletions lib/stdlib/src/erl_internal.erl
Expand Up @@ -312,6 +312,7 @@ bif(open_port, 2) -> true;
bif(pid_to_list, 1) -> true;
bif(port_close, 1) -> true;
bif(port_command, 2) -> true;
bif(port_command, 3) -> true;
bif(port_connect, 2) -> true;
bif(port_control, 3) -> true;
bif(pre_loaded, 0) -> true;
Expand Down

0 comments on commit 750f53b

Please sign in to comment.