1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00

fixes deadlock at IntegrationTest using valgrind

This commit is contained in:
Falk Werner 2019-05-03 01:09:54 +02:00
parent 8ef8f7a18e
commit 7fa4695ae2

View File

@ -60,14 +60,18 @@ TEST_F(IntegrationTest, HasMountpoint)
ASSERT_TRUE(S_ISDIR(buffer.st_mode)); ASSERT_TRUE(S_ISDIR(buffer.st_mode));
} }
TEST_F(IntegrationTest, DISABLED_ProvidesTextFile) TEST_F(IntegrationTest, ProvidesTextFile)
{ {
webfuse_test::msleep(200);
std::string file_name = std::string(GetBaseDir()) + "/cprovider/default/hello.txt"; std::string file_name = std::string(GetBaseDir()) + "/cprovider/default/hello.txt";
ASSERT_EXIT({
struct stat buffer; struct stat buffer;
int rc = stat(file_name.c_str(), &buffer); int rc = stat(file_name.c_str(), &buffer);
ASSERT_EQ(0, rc); exit(rc);
}, ::testing::ExitedWithCode(0), ".*");
// ASSERT_TRUE(S_ISREG(buffer.st_mode)); // ASSERT_TRUE(S_ISREG(buffer.st_mode));
// ASSERT_EQ(0444, (buffer.st_mode & 0777)); // ASSERT_EQ(0444, (buffer.st_mode & 0777));
// ASSERT_EQ(12, buffer.st_size); // ASSERT_EQ(12, buffer.st_size);