[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master cc5b0c8 4/5: Fix defect introduced 20050621T2
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master cc5b0c8 4/5: Fix defect introduced 20050621T2348Z: inscrutable test |
Date: |
Tue, 11 May 2021 12:03:52 -0400 (EDT) |
branch: master
commit cc5b0c8e2987611f713273e30d07a65d64868b19
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Fix defect introduced 20050621T2348Z: inscrutable test
Substituted a scrutable test for the puzzling one introduced in commit
a2cf4ef6a0a2f of 20050621T2348Z. See:
https://lists.nongnu.org/archive/html/lmi/2021-05/msg00002.html
et seq.
---
global_settings_test.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/global_settings_test.cpp b/global_settings_test.cpp
index 8df9c43..d9f32ed 100644
--- a/global_settings_test.cpp
+++ b/global_settings_test.cpp
@@ -84,9 +84,8 @@ int test_main(int, char*[])
fs::path path(global_settings::instance().data_directory());
- fs::directory_iterator const i(path);
-
- LMI_TEST(i->exists());
+ // The data directory is supposed to exist.
+ LMI_TEST(fs::is_directory(path));
// Certain other operations are required to throw.