diff options
author | Björn Gustavsson <[email protected]> | 2012-09-27 09:43:34 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2012-10-23 13:43:25 +0200 |
commit | bf7de1c3182467774e0dcbc4f33e26497098fa89 (patch) | |
tree | 6669e03e72a54398326e26926d99621560d72f46 /lib | |
parent | 5f3a7727464522da88d07a3012aa87b8703e3f3a (diff) | |
download | otp-bf7de1c3182467774e0dcbc4f33e26497098fa89.tar.gz otp-bf7de1c3182467774e0dcbc4f33e26497098fa89.tar.bz2 otp-bf7de1c3182467774e0dcbc4f33e26497098fa89.zip |
test_server_ctrl: Consistently use set_io_buffering/1
Since we will want to change the implementation of I/O buffering in
a future commit, make sure that all updates of the buffering state
is done by calling set_io_buffering/1.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/test_server/src/test_server_ctrl.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/test_server/src/test_server_ctrl.erl b/lib/test_server/src/test_server_ctrl.erl index 88d86285d5..33277113e2 100644 --- a/lib/test_server/src/test_server_ctrl.erl +++ b/lib/test_server/src/test_server_ctrl.erl @@ -1409,7 +1409,7 @@ init_tester(Mod, Func, Args, Dir, Name, {SumLev,MajLev,MinLev}, RejectIoReqs, put(test_server_log_nl, not lists:member(no_nl, LogOpts)), StartedExtraTools = start_extra_tools(ExtraTools), {TimeMy,Result} = ts_tc(Mod, Func, Args), - put(test_server_common_io_handler, undefined), + set_io_buffering(undefined), catch stop_extra_tools(StartedExtraTools), case Result of {'EXIT',test_suites_done} -> @@ -3764,7 +3764,7 @@ run_test_case1(Ref, Num, Mod, Func, Args, RunInit, Where, end, do_if_parallel(Main, CopyDict, ok), do_if_parallel(Main, fun() -> - put(test_server_common_io_handler, {tc,Main}) + set_io_buffering({tc,Main}) end, ok), %% if io is being buffered, send start io session message %% (no matter if case runs on parallel or main process) |