Debug halteproblem with tests

This commit is contained in:
Manuel Schölling 2015-03-15 16:09:33 +01:00
parent e239cd21e7
commit 362a7dfc93
2 changed files with 6 additions and 3 deletions

View File

@ -119,7 +119,7 @@ run_test!(verify_trusted, |method, stream| {
Err(err) => panic!("Expected success, got {:?}", err) Err(err) => panic!("Expected success, got {:?}", err)
} }
}); });
/*
run_test!(verify_untrusted_callback_override_ok, |method, stream| { run_test!(verify_untrusted_callback_override_ok, |method, stream| {
fn callback(_preverify_ok: bool, _x509_ctx: &X509StoreContext) -> bool { fn callback(_preverify_ok: bool, _x509_ctx: &X509StoreContext) -> bool {
true true
@ -288,7 +288,7 @@ run_test!(clear_ctx_options, |method, _| {
let opts = ctx.clear_options(ssl::SSL_OP_ALL); let opts = ctx.clear_options(ssl::SSL_OP_ALL);
assert!(!opts.contains(ssl::SSL_OP_ALL)); assert!(!opts.contains(ssl::SSL_OP_ALL));
}); });
*/
#[test] #[test]
fn test_write() { fn test_write() {
let stream = TcpStream::connect("127.0.0.1:15418").unwrap(); let stream = TcpStream::connect("127.0.0.1:15418").unwrap();

View File

@ -7,7 +7,10 @@ for port in `seq 15411 15430`; do
echo hello | openssl s_server -accept $port -dtls1 -cert openssl/test/cert.pem \ echo hello | openssl s_server -accept $port -dtls1 -cert openssl/test/cert.pem \
-key openssl/test/key.pem 2>&1 >/dev/null & -key openssl/test/key.pem 2>&1 >/dev/null &
done done
rm -f /tmp/rust_openssl_test_pipe
mkfifo /tmp/rust_openssl_test_pipe
# the server for the test ssl::tests::test_write_dtlsv1 must wait to receive # the server for the test ssl::tests::test_write_dtlsv1 must wait to receive
# data from the client # data from the client
openssl s_server -accept 15410 -dtls1 -cert openssl/test/cert.pem \ openssl s_server -accept 15410 -dtls1 -cert openssl/test/cert.pem \
-key openssl/test/key.pem 2>&1 >/dev/null -key openssl/test/key.pem 2>&1 >/dev/null </tmp/rust_openssl_test_pipe