fixes deadlock at IntegrationTest using valgrind

pull/34/head
Falk Werner 5 years ago
parent 8ef8f7a18e
commit 7fa4695ae2

@ -60,14 +60,18 @@ TEST_F(IntegrationTest, HasMountpoint)
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";
struct stat buffer;
int rc = stat(file_name.c_str(), &buffer);
ASSERT_EXIT({
struct stat 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_EQ(0444, (buffer.st_mode & 0777));
// ASSERT_EQ(12, buffer.st_size);

Loading…
Cancel
Save