diff options
author | Björn Gustavsson <[email protected]> | 2016-03-07 07:54:55 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-03-10 14:31:22 +0100 |
commit | b9c24a79d838579c11f8b32b4ef34261ef29168b (patch) | |
tree | 70d176a4146e3d385c07fef2418b43cedd9fb226 /lib | |
parent | 6588228827d92f4cb9883303f03abf84734947b0 (diff) | |
download | otp-b9c24a79d838579c11f8b32b4ef34261ef29168b.tar.gz otp-b9c24a79d838579c11f8b32b4ef34261ef29168b.tar.bz2 otp-b9c24a79d838579c11f8b32b4ef34261ef29168b.zip |
Replace use of test_server:capture*/0 with ct:capture*/0
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kernel/test/code_SUITE.erl | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/kernel/test/code_SUITE.erl b/lib/kernel/test/code_SUITE.erl index 16a57cd4d8..432ada3a08 100644 --- a/lib/kernel/test/code_SUITE.erl +++ b/lib/kernel/test/code_SUITE.erl @@ -684,10 +684,10 @@ clash(Config) when is_list(Config) -> true = code:add_path(DDir++"foobar-0.1/ebin"), true = code:add_path(DDir++"zork-0.8/ebin"), - test_server:capture_start(), + ct:capture_start(), ok = code:clash(), - test_server:capture_stop(), - [OKMsg|_] = test_server:capture_get(), + ct:capture_stop(), + [OKMsg|_] = ct:capture_get(), true = lists:prefix("** Found 0 name clashes", OKMsg), true = code:set_path(P), @@ -695,10 +695,10 @@ clash(Config) when is_list(Config) -> true = code:add_path(DDir++"foobar-0.1/ebin"), true = code:add_path(DDir++"foobar-0.1.ez/foobar-0.1/ebin"), - test_server:capture_start(), + ct:capture_start(), ok = code:clash(), - test_server:capture_stop(), - [ClashMsg|_] = test_server:capture_get(), + ct:capture_stop(), + [ClashMsg|_] = ct:capture_get(), {match, [" hides "]} = re:run(ClashMsg, "\\*\\* .*( hides ).*", [{capture,all_but_first,list}]), true = code:set_path(P), @@ -717,10 +717,10 @@ clash(Config) when is_list(Config) -> _ -> ok = file:delete(TmpEzFile) end, - test_server:capture_start(), + ct:capture_start(), ok = code:clash(), - test_server:capture_stop(), - [BadPathMsg|_] = test_server:capture_get(), + ct:capture_stop(), + [BadPathMsg|_] = ct:capture_get(), true = lists:prefix("** Bad path can't read", BadPathMsg), true = code:set_path(P), file:delete(TmpEzFile++".moved"), %% Only effect on windows |