Skip to content

Commit

Permalink
fix(test): fixing incorrect test case (#163)
Browse files Browse the repository at this point in the history
Signed-off-by: Pawan <pawanprakash101@gmail.com>
  • Loading branch information
pawanpraka1 authored and vishnuitta committed Dec 6, 2018
1 parent 1dc4542 commit 56523aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/cbtest/gtest/test_uzfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ verify_app_io_read_write(int fd, zvol_info_t *zinfo)
memcpy(write_buf + i, cbuf, clen);
}

pthread_mutex_lock(&done_thread_count_mtx);

GtestUtils::write_data_and_verify_resp(fd, ioseq, write_buf, offset, len, io_num);

uzfs_read_data(read_zv, read_buf, offset, len, &md);
Expand All @@ -532,6 +534,7 @@ verify_app_io_read_write(int fd, zvol_info_t *zinfo)
EXPECT_EQ(memcmp(write_buf, read_buf, sizeof (read_buf)), 0);
FREE_METADATA_LIST(md);
}
pthread_mutex_unlock(&done_thread_count_mtx);
}

void
Expand Down

0 comments on commit 56523aa

Please sign in to comment.