diff options
author | Ingela Anderton Andin <[email protected]> | 2015-12-01 18:48:12 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2015-12-09 15:47:27 +0100 |
commit | 22afaebfc419df5a0ca78340ffc659f72439e2db (patch) | |
tree | 8cd30307eef198f7feeb340f00517219e4762713 /lib/ssl/test/ssl_test_lib.erl | |
parent | 8f91fc9576aa4abadf7e20e5aaabec1b37832145 (diff) | |
download | otp-22afaebfc419df5a0ca78340ffc659f72439e2db.tar.gz otp-22afaebfc419df5a0ca78340ffc659f72439e2db.tar.bz2 otp-22afaebfc419df5a0ca78340ffc659f72439e2db.zip |
ssl: Use spawn_executable
Diffstat (limited to 'lib/ssl/test/ssl_test_lib.erl')
-rw-r--r-- | lib/ssl/test/ssl_test_lib.erl | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/ssl/test/ssl_test_lib.erl b/lib/ssl/test/ssl_test_lib.erl index f25f6f9425..9a76d603b1 100644 --- a/lib/ssl/test/ssl_test_lib.erl +++ b/lib/ssl/test/ssl_test_lib.erl @@ -1192,13 +1192,13 @@ wait_for_openssl_server(Port, N) -> end. version_flag(tlsv1) -> - " -tls1 "; + "-tls1"; version_flag('tlsv1.1') -> - " -tls1_1 "; + "-tls1_1"; version_flag('tlsv1.2') -> - " -tls1_2 "; + "-tls1_2"; version_flag(sslv3) -> - " -ssl3 ". + "-ssl3". filter_suites(Ciphers0) -> Version = tls_record:highest_protocol_version([]), @@ -1243,3 +1243,9 @@ close_loop(Port, Time, SentClose) -> ct:log("Timeout~n",[]) end end. + +portable_open_port(Exe, Args) -> + AbsPath = os:find_executable(Exe), + ct:pal("open_port({spawn_executable, ~p}, [{args, ~p}, stderr_to_stdout]).", [AbsPath, Args]), + open_port({spawn_executable, AbsPath}, + [{args, Args}, stderr_to_stdout]). |