From 2348396ad90d57dd47170793e73e9e0386aa978e Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Mon, 3 Sep 2018 08:58:03 -0700 Subject: [PATCH] constexpr fix for Windows --- test/fspp/fuse/read/FuseReadOverflowTest.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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];