aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/driver_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-10-05 13:10:42 +0200
committerBjörn Gustavsson <[email protected]>2017-10-13 11:55:47 +0200
commit20c2b1b174b44ed24afe73b3ac604e14d8c9318f (patch)
tree12de0b016a086e9bfc45ee498f201e36fe4c6e6f /erts/emulator/test/driver_SUITE.erl
parent0f2e313475bae2d3870333b0340e8453bbff51a5 (diff)
downloadotp-20c2b1b174b44ed24afe73b3ac604e14d8c9318f.tar.gz
otp-20c2b1b174b44ed24afe73b3ac604e14d8c9318f.tar.bz2
otp-20c2b1b174b44ed24afe73b3ac604e14d8c9318f.zip
Eliminate use of deprecated functions in string
Diffstat (limited to 'erts/emulator/test/driver_SUITE.erl')
-rw-r--r--erts/emulator/test/driver_SUITE.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/test/driver_SUITE.erl b/erts/emulator/test/driver_SUITE.erl
index 33d0b708cf..475e03087a 100644
--- a/erts/emulator/test/driver_SUITE.erl
+++ b/erts/emulator/test/driver_SUITE.erl
@@ -1192,9 +1192,9 @@ check_driver_system_info_result(Result) ->
io:format("All names: ~p~n", [?EXPECTED_SYSTEM_INFO_NAMES]),
io:format("Result: ~p~n", [Result]),
{[], Ns, DDVSN} = chk_sis(lists:map(fun (Str) ->
- string:tokens(Str, "=")
+ string:lexemes(Str, "=")
end,
- string:tokens(Result, " ")),
+ string:lexemes(Result, " ")),
?EXPECTED_SYSTEM_INFO_NAMES),
case {DDVSN,
drv_vsn_str2tup(erlang:system_info(driver_version))} of
@@ -2438,7 +2438,7 @@ wait_until(Fun) ->
end.
drv_vsn_str2tup(Str) ->
- [Major, Minor] = string:tokens(Str, "."),
+ [Major, Minor] = string:lexemes(Str, "."),
{list_to_integer(Major), list_to_integer(Minor)}.
%% Build port data from a template.