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:
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);
|
||||
|
||||
exit(rc);
|
||||
}, ::testing::ExitedWithCode(0), ".*");
|
||||
|
||||
ASSERT_EQ(0, rc);
|
||||
// ASSERT_TRUE(S_ISREG(buffer.st_mode));
|
||||
// ASSERT_EQ(0444, (buffer.st_mode & 0777));
|
||||
// ASSERT_EQ(12, buffer.st_size);
|
||||
|
Loading…
Reference in New Issue
Block a user