Remove obsolete test case
This commit is contained in:
parent
5da8eac56e
commit
9102c06356
@ -53,7 +53,6 @@ set(SOURCES
|
|||||||
fuse/statfs/FuseStatfsReturnBsizeTest.cpp
|
fuse/statfs/FuseStatfsReturnBsizeTest.cpp
|
||||||
fuse/statfs/FuseStatfsErrorTest.cpp
|
fuse/statfs/FuseStatfsErrorTest.cpp
|
||||||
fuse/statfs/FuseStatfsReturnBfreeTest.cpp
|
fuse/statfs/FuseStatfsReturnBfreeTest.cpp
|
||||||
fuse/statfs/FuseStatfsPathParameterTest.cpp
|
|
||||||
fuse/statfs/FuseStatfsReturnBlocksTest.cpp
|
fuse/statfs/FuseStatfsReturnBlocksTest.cpp
|
||||||
fuse/statfs/FuseStatfsReturnBavailTest.cpp
|
fuse/statfs/FuseStatfsReturnBavailTest.cpp
|
||||||
fuse/closeFile/FuseCloseTest.cpp
|
fuse/closeFile/FuseCloseTest.cpp
|
||||||
|
@ -1,47 +0,0 @@
|
|||||||
#include "testutils/FuseStatfsTest.h"
|
|
||||||
|
|
||||||
using ::testing::_;
|
|
||||||
using ::testing::StrEq;
|
|
||||||
using ::testing::Return;
|
|
||||||
|
|
||||||
class FuseStatfsPathParameterTest: public FuseStatfsTest {
|
|
||||||
};
|
|
||||||
|
|
||||||
// osxfuse doesn't handle path parameters correctly
|
|
||||||
// see https://github.com/osxfuse/osxfuse/issues/538
|
|
||||||
#if !defined(__APPLE__)
|
|
||||||
|
|
||||||
TEST_F(FuseStatfsPathParameterTest, PathParameterIsCorrectRoot) {
|
|
||||||
EXPECT_CALL(fsimpl, statfs(StrEq("/"), _)).Times(1).WillOnce(Return());
|
|
||||||
Statfs("/");
|
|
||||||
}
|
|
||||||
|
|
||||||
TEST_F(FuseStatfsPathParameterTest, PathParameterIsCorrectSimpleFile) {
|
|
||||||
ReturnIsFileOnLstat("/myfile");
|
|
||||||
EXPECT_CALL(fsimpl, statfs(StrEq("/myfile"), _)).Times(1).WillOnce(Return());
|
|
||||||
Statfs("/myfile");
|
|
||||||
}
|
|
||||||
|
|
||||||
TEST_F(FuseStatfsPathParameterTest, PathParameterIsCorrectSimpleDir) {
|
|
||||||
ReturnIsDirOnLstat("/mydir");
|
|
||||||
EXPECT_CALL(fsimpl, statfs(StrEq("/mydir"), _)).Times(1).WillOnce(Return());
|
|
||||||
Statfs("/mydir");
|
|
||||||
}
|
|
||||||
|
|
||||||
TEST_F(FuseStatfsPathParameterTest, PathParameterIsCorrectNestedFile) {
|
|
||||||
ReturnIsDirOnLstat("/mydir");
|
|
||||||
ReturnIsDirOnLstat("/mydir/mydir2");
|
|
||||||
ReturnIsFileOnLstat("/mydir/mydir2/myfile");
|
|
||||||
EXPECT_CALL(fsimpl, statfs(StrEq("/mydir/mydir2/myfile"), _)).Times(1).WillOnce(Return());
|
|
||||||
Statfs("/mydir/mydir2/myfile");
|
|
||||||
}
|
|
||||||
|
|
||||||
TEST_F(FuseStatfsPathParameterTest, PathParameterIsCorrectNestedDir) {
|
|
||||||
ReturnIsDirOnLstat("/mydir");
|
|
||||||
ReturnIsDirOnLstat("/mydir/mydir2");
|
|
||||||
ReturnIsDirOnLstat("/mydir/mydir2/mydir3");
|
|
||||||
EXPECT_CALL(fsimpl, statfs(StrEq("/mydir/mydir2/mydir3"), _)).Times(1).WillOnce(Return());
|
|
||||||
Statfs("/mydir/mydir2/mydir3");
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
x
Reference in New Issue
Block a user