constexpr fix for Windows

This commit is contained in:
Sebastian Messmer 2018-09-03 08:58:03 -07:00
parent 93ed589bf4
commit 2348396ad9

View File

@ -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];