Skip to content

Commit 01a7e42

Browse files
committed
Simplify searching for subfolders of project folders
1 parent 42b609c commit 01a7e42

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/Filesystem.test.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace {
4646
fs(AppName, OrganizationName)
4747
{
4848
fs.mount(fs.basePath());
49-
fs.mount(fs.findInParents("test/", fs.basePath()) / "data/");
49+
fs.mount(fs.findInParents("test/data/", fs.basePath()));
5050
fs.mountReadWrite(fs.prefPath());
5151
}
5252

@@ -153,8 +153,7 @@ TEST_F(Filesystem, isDirectoryMakeDirectory) {
153153
}
154154

155155
TEST_F(Filesystem, mountUnmount) {
156-
const auto projectFolder = fs.findInParents("test/", fs.basePath());
157-
const auto extraMount = projectFolder / "data/extraData/";
156+
const auto extraMount = fs.findInParents("test/data/extraData/", fs.basePath());
158157
const std::string extraFile = "extraFile.txt";
159158

160159
EXPECT_FALSE(fs.exists(extraFile));

0 commit comments

Comments
 (0)