summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));