diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2016-12-25 10:56:47 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2016-12-25 10:56:47 +0100 |
| commit | 2353d1a530a86e2c30fab2f326640f9f94c41741 (patch) | |
| tree | e3a3b982e56bda0feaabe3dddba30afa1a1559cf /test/fs/extfs_test.cpp | |
| parent | 0b1d2583d5bb514e236f757012fcb7b855f0e996 (diff) | |
| download | extfs-2353d1a530a86e2c30fab2f326640f9f94c41741.tar.xz extfs-2353d1a530a86e2c30fab2f326640f9f94c41741.zip | |
extfs: Add new test for extfs::has_label
Diffstat (limited to 'test/fs/extfs_test.cpp')
| -rw-r--r-- | test/fs/extfs_test.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/fs/extfs_test.cpp b/test/fs/extfs_test.cpp index 4a5e1b5..c90e0fa 100644 --- a/test/fs/extfs_test.cpp +++ b/test/fs/extfs_test.cpp @@ -11,10 +11,17 @@ void construction_with_inexistent_file_creates_extfs_that_is_not_open() ASSERT(!disk.open()); } +void non_open_file_system_has_no_label() + { + auto && disk = fs::extfs{"./THIS_DISK_DOES_NOT_EXIST"}; + ASSERT(!disk.has_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::xml_file_opener resultFile{argc, argv}; |
