aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sasl/test
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2013-05-08 11:36:34 +0200
committerSiri Hansen <[email protected]>2013-05-08 11:36:34 +0200
commitdd850c00803939e44d7f2ea6659825d0ab861b9d (patch)
tree0897907282ea830cad060752624bee81d2727e9f /lib/sasl/test
parent34ef3e83e67a7b137579a12ee0a8e2620bf9339b (diff)
downloadotp-dd850c00803939e44d7f2ea6659825d0ab861b9d.tar.gz
otp-dd850c00803939e44d7f2ea6659825d0ab861b9d.tar.bz2
otp-dd850c00803939e44d7f2ea6659825d0ab861b9d.zip
[sasl] In test, quote erlsrv executable in call to open_port/2
Diffstat (limited to 'lib/sasl/test')
-rw-r--r--lib/sasl/test/rh_test_lib.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sasl/test/rh_test_lib.erl b/lib/sasl/test/rh_test_lib.erl
index 99a7f919a7..c9a425c729 100644
--- a/lib/sasl/test/rh_test_lib.erl
+++ b/lib/sasl/test/rh_test_lib.erl
@@ -13,7 +13,8 @@
erlsrv(Erlsrv,Action,Name) ->
erlsrv(Erlsrv,Action,Name,"").
erlsrv(Erlsrv,Action,Name,Rest) ->
- Cmd = Erlsrv ++ " " ++ atom_to_list(Action) ++ " " ++ Name ++ " " ++ Rest,
+ Cmd = "\"" ++ Erlsrv ++ "\" " ++ atom_to_list(Action) ++ " " ++
+ Name ++ " " ++ Rest,
io:format("erlsrv cmd: ~p~n",[Cmd]),
Port = open_port({spawn, Cmd}, [stream, {line, 100}, eof, in]),
Res = recv_prog_output(Port),