From fc1a4def706670921a37d71722362f2938c4869e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 5 Jan 2019 17:00:41 +0000 Subject: Initialize the test data written --- netfs/unittests/testEdgeCases.cpp | 3 +++ 1 file changed, 3 insertions(+) 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)); -- cgit v1.2.3