Skip to content

Commit 0237eba

Browse files
committed
fix sgx build
1 parent 0d75073 commit 0237eba

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ct.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if [ $TRAVIS_RUST_VERSION = "stable" ] || [ $TRAVIS_RUST_VERSION = "beta" ] || [
3737
cargo test --features force_aesni_support --target $TARGET
3838
fi
3939
else
40-
cargo +$TRAVIS_RUST_VERSION test --no-run --target=$TARGET
40+
cargo +$TRAVIS_RUST_VERSION test --no-run --target=$TARGET --features=sgx --no-default-features
4141
fi
4242

4343
elif [ $TRAVIS_RUST_VERSION = $CORE_IO_NIGHTLY ]; then

mbedtls/tests/alpn.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
extern crate mbedtls;
1111

1212
use std::net::TcpStream;
13-
use std::thread;
1413

1514
use mbedtls::pk::Pk;
1615
use mbedtls::rng::CtrDrbg;
@@ -83,8 +82,10 @@ fn server(mut conn: TcpStream, alpn_list: Option<&[&str]>, expected: Expected<'_
8382
Ok(())
8483
}
8584

85+
#[cfg(unix)]
8686
#[test]
8787
fn alpn() {
88+
use std::thread;
8889
#[derive(Clone)]
8990
struct TestConfig {
9091
client_list: Option<&'static [&'static str]>,
@@ -119,8 +120,10 @@ fn alpn() {
119120
}
120121
}
121122

123+
#[cfg(unix)]
122124
#[test]
123125
fn nothing_in_common() {
126+
use std::thread;
124127
let (c, s) = support::net::create_tcp_pair().unwrap();
125128
let c = thread::spawn(move || client(c, Some(&["a1\0", "a2\0"]), Expected::FailedHandshake(Error::SslFatalAlertMessage)).unwrap());
126129
let s = thread::spawn(move || server(s, Some(&["b1\0", "b2\0"]), Expected::FailedHandshake(Error::SslBadHsClientHello)).unwrap());

0 commit comments

Comments
 (0)