aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_server/src/test_server_sup.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-02-15 19:58:13 +0100
committerLukas Larsson <[email protected]>2011-02-16 09:49:39 +0100
commit8b86cd551352ac06bccbeab4c76849d3978876ec (patch)
tree6f4065f6f1086d92982a4cc003329a0103e1dcb1 /lib/test_server/src/test_server_sup.erl
parenta5c92f814fd5c59ec219b83f9af8826f5f046962 (diff)
downloadotp-8b86cd551352ac06bccbeab4c76849d3978876ec.tar.gz
otp-8b86cd551352ac06bccbeab4c76849d3978876ec.tar.bz2
otp-8b86cd551352ac06bccbeab4c76849d3978876ec.zip
Update TEST_SERVER_FRAMEWORK os variable to be regarded as undet if set to undefined
Diffstat (limited to 'lib/test_server/src/test_server_sup.erl')
-rw-r--r--lib/test_server/src/test_server_sup.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/test_server/src/test_server_sup.erl b/lib/test_server/src/test_server_sup.erl
index 625724fbb5..4a7804a482 100644
--- a/lib/test_server/src/test_server_sup.erl
+++ b/lib/test_server/src/test_server_sup.erl
@@ -494,7 +494,8 @@ framework_call(Func,Args) ->
framework_call(Func,Args,DefaultReturn) ->
CB = os:getenv("TEST_SERVER_FRAMEWORK"),
framework_call(CB,Func,Args,DefaultReturn).
-framework_call(false,_Func,_Args,DefaultReturn) ->
+framework_call(FW,_Func,_Args,DefaultReturn)
+ when FW =:= false; FW =:= "undefined" ->
DefaultReturn;
framework_call(Callback,Func,Args,DefaultReturn) ->
Mod = list_to_atom(Callback),