summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-01-05 17:00:41 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-01-05 17:00:41 +0000
commitfc1a4def706670921a37d71722362f2938c4869e (patch)
treecca8ce71d3ae0a2d1406e14a46695ce7b8ad8c4c
parentTake a shared lock of global state during regular operation (diff)
downloadnetfs-fc1a4def706670921a37d71722362f2938c4869e.tar.bz2
netfs-fc1a4def706670921a37d71722362f2938c4869e.tar.xz
netfs-fc1a4def706670921a37d71722362f2938c4869e.zip
Initialize the test data written
-rw-r--r--netfs/unittests/testEdgeCases.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/netfs/unittests/testEdgeCases.cpp b/netfs/unittests/testEdgeCases.cpp
index 704d131..f105869 100644
--- a/netfs/unittests/testEdgeCases.cpp
+++ b/netfs/unittests/testEdgeCases.cpp
@@ -37,6 +37,9 @@ BOOST_AUTO_TEST_CASE ( createAndDaemonRestart )
BOOST_TEST_CHECKPOINT("Write some data");
char someData[890];
+ for (auto & d : someData) {
+ d = rand();
+ }
BOOST_REQUIRE_EQUAL(sizeof(someData), fuse.fuse->write(fileName, someData, sizeof(someData), 0, &fh));
BOOST_REQUIRE_EQUAL(0, fuse.fuse->fgetattr(fileName, &st, &fh));