Rollup merge of #138631 - thaliaarchi:sgx-read-buf-test, r=workingjubilee
Update test for SGX now implementing `read_buf` In #108326, `read_buf` was implemented for a variety of types, but SGX was saved for later. Update a test from then, now that #137355 implemented it for SGX types. cc ````@jethrogb````
This commit is contained in:
commit
bb49f0d8b6
1 changed files with 2 additions and 6 deletions
|
@ -315,12 +315,8 @@ fn read_buf() {
|
|||
let mut buf = BorrowedBuf::from(buf.as_mut_slice());
|
||||
t!(s.read_buf(buf.unfilled()));
|
||||
assert_eq!(buf.filled(), &[1, 2, 3, 4]);
|
||||
|
||||
// FIXME: sgx uses default_read_buf that initializes the buffer.
|
||||
if cfg!(not(target_env = "sgx")) {
|
||||
// TcpStream::read_buf should omit buffer initialization.
|
||||
assert_eq!(buf.init_len(), 4);
|
||||
}
|
||||
// TcpStream::read_buf should omit buffer initialization.
|
||||
assert_eq!(buf.init_len(), 4);
|
||||
|
||||
t.join().ok().expect("thread panicked");
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue