From 6a05b2c05f0e83ad9a98d8b3d09740f564d64f89 Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Fri, 1 Oct 2010 17:27:49 +0200 Subject: Update so that when asking for os and we are in the test_server_ctrl process, just use os:type(). --- lib/test_server/src/test_server_ctrl.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/test_server') diff --git a/lib/test_server/src/test_server_ctrl.erl b/lib/test_server/src/test_server_ctrl.erl index 1dc5646184..2ab7b799fc 100644 --- a/lib/test_server/src/test_server_ctrl.erl +++ b/lib/test_server/src/test_server_ctrl.erl @@ -533,6 +533,8 @@ get_target_os_type() -> undefined -> %% This is probably called on the target node os:type(); + Pid when Pid =:= self() -> + os:type(); _pid -> %% This is called on the controller, e.g. from a %% specification clause of a test case -- cgit v1.2.3