diff --git a/test/fspp/fuse/read/FuseReadOverflowTest.cpp b/test/fspp/fuse/read/FuseReadOverflowTest.cpp index ba7d97a2..044c9e49 100644 --- a/test/fspp/fuse/read/FuseReadOverflowTest.cpp +++ b/test/fspp/fuse/read/FuseReadOverflowTest.cpp @@ -9,9 +9,9 @@ using namespace fspp::fuse; class FuseReadOverflowTest: public FuseReadTest { public: - const size_t FILESIZE = 1000; - const size_t READSIZE = 2000; - const size_t OFFSET = 500; + static constexpr size_t FILESIZE = 1000; + static constexpr size_t READSIZE = 2000; + static constexpr size_t OFFSET = 500; void SetUp() override { ReturnIsFileOnLstatWithSize(FILENAME, FILESIZE); @@ -20,6 +20,10 @@ public: } }; +constexpr size_t FuseReadOverflowTest::FILESIZE; +constexpr size_t FuseReadOverflowTest::READSIZE; +constexpr size_t FuseReadOverflowTest::OFFSET; + TEST_F(FuseReadOverflowTest, ReadMoreThanFileSizeFromBeginning) { char buf[READSIZE];