aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_server/src/test_server_io.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2013-04-05 09:27:53 +0200
committerSiri Hansen <[email protected]>2013-04-08 11:39:08 +0200
commit516948f172067d1afe34adbaf866bc7488f8bedf (patch)
tree5616f59ce657fffc8890f170a9ee21e4543077d6 /lib/test_server/src/test_server_io.erl
parent36dc385f283a3566fdc4a67c63299837e8c90f7a (diff)
downloadotp-516948f172067d1afe34adbaf866bc7488f8bedf.tar.gz
otp-516948f172067d1afe34adbaf866bc7488f8bedf.tar.bz2
otp-516948f172067d1afe34adbaf866bc7488f8bedf.zip
[test_server] Add test_server_io:print_unexpected/1
To use from any process to print a string in the unexpected_io.log.
Diffstat (limited to 'lib/test_server/src/test_server_io.erl')
-rw-r--r--lib/test_server/src/test_server_io.erl11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/test_server/src/test_server_io.erl b/lib/test_server/src/test_server_io.erl
index 242c08f765..a979deffc3 100644
--- a/lib/test_server/src/test_server_io.erl
+++ b/lib/test_server/src/test_server_io.erl
@@ -30,7 +30,8 @@
-module(test_server_io).
-export([start_link/0,stop/0,get_gl/1,set_fd/2,
- start_transaction/0,end_transaction/0,print_buffered/1,print/3,
+ start_transaction/0,end_transaction/0,
+ print_buffered/1,print/3,print_unexpected/1,
set_footer/1,set_job_name/1,set_gl_props/1]).
-export([init/1,handle_call/3,handle_info/2,terminate/2]).
@@ -124,6 +125,14 @@ print(From, Tag, Msg) ->
print_buffered(Pid) ->
req({print_buffered,Pid}).
+%% print_unexpected(Msg)
+%% Msg = string or iolist
+%%
+%% Print the given string in the unexpected_io log.
+
+print_unexpected(Msg) ->
+ print(xxxFrom,unexpected_io,Msg).
+
%% set_footer(IoData)
%%
%% Set a footer for the file associated with the 'html' tag.