Skip to content

Commit

Permalink
Ignore peek tests on SGX platform
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulstrackx committed Nov 6, 2023
1 parent 994c9b4 commit b9ddbaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tokio/tests/tcp_into_split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ async fn split() -> Result<()> {
assert_eq!(peek_len1, peek_len2);

let read_len = read_half.read(&mut read_buf[..]).await?;
#[cfg(not(target_env = "sgx"))] // peek always returns Ok(0) in SGX
assert_eq!(peek_len1, read_len);
assert_eq!(&read_buf[..read_len], MSG);
Ok(())
Expand Down
1 change: 1 addition & 0 deletions tokio/tests/tcp_split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ async fn split() -> Result<()> {
assert_eq!(peek_len1, peek_len2);

let read_len = read_half.read(&mut read_buf[..]).await?;
#[cfg(not(target_env = "sgx"))] // peek always returns Ok(0) in SGX
assert_eq!(peek_len1, read_len);
assert_eq!(&read_buf[..read_len], MSG);

Expand Down

0 comments on commit b9ddbaf

Please sign in to comment.