aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/test/ttb_SUITE.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2017-07-06 17:25:37 +0200
committerSiri Hansen <[email protected]>2017-09-15 17:07:51 +0200
commitfb9235e7c3a6872a1394e5ba0c78217d9617f8e3 (patch)
tree758aa4ef26fac6475883450b4ccc599d23bcc08e /lib/observer/test/ttb_SUITE.erl
parent09e2288b7a42345ea76e5e23ad93346c63efb06d (diff)
downloadotp-fb9235e7c3a6872a1394e5ba0c78217d9617f8e3.tar.gz
otp-fb9235e7c3a6872a1394e5ba0c78217d9617f8e3.tar.bz2
otp-fb9235e7c3a6872a1394e5ba0c78217d9617f8e3.zip
observer: Do not use deprecated functions in string(3)
Diffstat (limited to 'lib/observer/test/ttb_SUITE.erl')
-rw-r--r--lib/observer/test/ttb_SUITE.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/observer/test/ttb_SUITE.erl b/lib/observer/test/ttb_SUITE.erl
index c06ec21f36..6d7e574856 100644
--- a/lib/observer/test/ttb_SUITE.erl
+++ b/lib/observer/test/ttb_SUITE.erl
@@ -222,7 +222,7 @@ file_fetch(Config) when is_list(Config) ->
?line ?t:capture_stop(),
?line [StoreString] = ?t:capture_get(),
?line UploadDir =
- lists:last(string:tokens(lists:flatten(StoreString),"$ \n")),
+ lists:last(string:lexemes(lists:flatten(StoreString),"$ \n")),
%% check that files are no longer in original directories...
?line ok = check_gone(ThisDir,atom_to_list(Node)++"-file_fetch"),
@@ -1035,8 +1035,8 @@ logfile_name_in_fetch_dir(Config) when is_list(Config) ->
?line {ServerNode, ClientNode} = start_client_and_server(),
?line begin_trace(ServerNode, ClientNode, {local, ?FNAME}),
?line {_,Dir} = ttb:stop([return_fetch_dir]),
- ?line P1 = lists:nth(3, string:tokens(filename:basename(Dir), "_")),
- ?line P2 = hd(string:tokens(P1, "-")),
+ ?line P1 = lists:nth(3, string:lexemes(filename:basename(Dir), "_")),
+ ?line P2 = hd(string:lexemes(P1, "-")),
?line _File = P2.
logfile_name_in_fetch_dir(cleanup,_Config) ->
?line stop_client_and_server().