summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml2
-rw-r--r--CMakeLists.txt2
-rw-r--r--test/fs/extfs_test.cpp7
3 files changed, 9 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 19aadbe..4db3206 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -94,5 +94,5 @@ script:
- if [ "$BUILD_TYPE" == "Coverage" ]; then cmake --build . --target extfs_coverage; fi
after_success:
- - if [ "$BUILD_TYPE" == "Coverage" ]; then sed -i'' -e "s_$(cd .. && pwd)__g" coverage.info.cleaned; fi
+ - if [ "$BUILD_TYPE" == "Coverage" ]; then sed -i'' -e "s_$(cd .. && pwd)/__g" coverage.info.cleaned; fi
- if [ "$BUILD_TYPE" == "Coverage" ]; then cd .. && coveralls-lcov --repo-token ${COVERALLS_API_TOKEN} build/coverage.info.cleaned; fi
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 17e1b24..39b9a65 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,7 +31,7 @@ if(${EXTFS_ENABLE_TESTS})
OUTPUT coverage
DEPENDENCIES ${CUTE_TARGETS}
SOURCE_DIRECTORIES "${PROJECT_SOURCE_DIR}/src/fs/*"
- "${PROJECT_SOURCE_DIR}/include/fs/*"
+ "${PROJECT_SOURCE_DIR}/include/fs/**/*.hpp"
QUIET
HTML_REPORT
)
diff --git a/test/fs/extfs_test.cpp b/test/fs/extfs_test.cpp
index c90e0fa..46149e9 100644
--- a/test/fs/extfs_test.cpp
+++ b/test/fs/extfs_test.cpp
@@ -17,11 +17,18 @@ void non_open_file_system_has_no_label()
ASSERT(!disk.has_label());
}
+void non_open_file_system_has_empty_label()
+ {
+ auto && disk = fs::extfs{"./THIS_DISK_DOES_NOT_EXIST"};
+ ASSERT_EQUAL("", disk.label());
+ }
+
int main(int argc, char * argv[])
{
auto tests = cute::suite{
CUTE(construction_with_inexistent_file_creates_extfs_that_is_not_open),
CUTE(non_open_file_system_has_no_label),
+ CUTE(non_open_file_system_has_empty_label)
};
cute::xml_file_opener resultFile{argc, argv};