Skip to content

Commit 6ace49e

Browse files
committed
fixup! add tests
1 parent fe0a9df commit 6ace49e

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎tests/test_control.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@ TEST_CASE("test control") {
285285
ublk::quiesce_dev(control_fd, dev_id, 1000)));
286286

287287
SUBCASE("start_user_recovery / end_user_recovery") {
288+
// TSAN: sync io thread before close
289+
ex::sync_wait(ex::starts_on(io_sched, ex::just()));
288290
close(ublkc_fd);
289291
ublkc_fd = -1;
290292
std::this_thread::sleep_for(

‎tests/test_raw.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ TEST_CASE("test raw - privileged") {
292292
ublk::raw::quiesce_dev(control_fd, dev_id, 1000)));
293293

294294
SUBCASE("start_user_recovery / end_user_recovery") {
295+
// TSAN: sync io thread before close
296+
ex::sync_wait(ex::starts_on(io_sched, ex::just()));
295297
close(ublkc_fd);
296298
ublkc_fd = -1;
297299
std::this_thread::sleep_for(

0 commit comments

Comments
 (0)