diff --git a/ylong_runtime/tests/async_buf_read.rs b/ylong_runtime/tests/async_buf_read.rs index b75566c4d13e1c3060b94535c95a337ea26b4eb6..d670c2c78b98670f5b97bca2e42cda903f43af25 100644 --- a/ylong_runtime/tests/async_buf_read.rs +++ b/ylong_runtime/tests/async_buf_read.rs @@ -11,6 +11,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +use std::fs; use std::io::SeekFrom; use ylong_runtime::fs::File; use ylong_runtime::io::{ @@ -234,4 +235,5 @@ fn sdv_buf_reader_seek() { assert_eq!(buf, "dolor".as_bytes()); }); ylong_runtime::block_on(handle1).unwrap(); + assert!(fs::remove_file("./tests/buf_reader_seek_file").is_ok()); } diff --git a/ylong_runtime/tests/async_buf_write.rs b/ylong_runtime/tests/async_buf_write.rs index 1a0bcbdd403c23d95bba1f797a6c38f9ce21e596..19e3fe2972b909c2357628995b86e03bf085cc32 100644 --- a/ylong_runtime/tests/async_buf_write.rs +++ b/ylong_runtime/tests/async_buf_write.rs @@ -11,6 +11,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +use std::fs; use std::io::{IoSlice, SeekFrom}; use ylong_runtime::fs::File; use ylong_runtime::io::{AsyncBufWriter, AsyncReadExt, AsyncSeekExt, AsyncWriteExt}; @@ -139,4 +140,5 @@ fn sdv_buf_writer_seek() { assert_eq!(buf, "dolor".as_bytes()); }); ylong_runtime::block_on(handle1).unwrap(); + assert!(fs::remove_file("./tests/buf_writer_seek_file").is_ok()); }