[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 0ed65f7 28/28: Restore (commented out) a test
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 0ed65f7 28/28: Restore (commented out) a test that failed spectacularly |
Date: |
Wed, 12 May 2021 18:14:47 -0400 (EDT) |
branch: master
commit 0ed65f700ac50d75a04ff016547b8c085e83bb16
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Restore (commented out) a test that failed spectacularly
The failure was so spectacular that it might indicate a deeper problem
that cannot be investigated today--so kept it, at least as a comment.
Incidentally elaborated on some similar comments.
---
path_utility_test.cpp | 21 +++++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
diff --git a/path_utility_test.cpp b/path_utility_test.cpp
index acfedcf..3c71337 100644
--- a/path_utility_test.cpp
+++ b/path_utility_test.cpp
@@ -415,7 +415,19 @@ void test_path_validation()
// semantic validity is not considered, and any syntactically
// valid path is well formed. Therefore, shouldn't the lmi
// 'validate_*' functions test semantic validity? If not, the
- // next two tests are senseless.
+ // next three tests are senseless (the first is already suppressed
+ // because it seems to indicate an 'alarum' problem).
+
+#if 0
+ // Neither posix nor msw allows a path to consist solely of NUL.
+ // BOOST !! Fix the 'alarum' problem.
+ std::string nulls = {'\0', '\0'};
+ LMI_TEST_THROW
+ (validate_filepath(nulls, context)
+ ,std::runtime_error
+ ,"Unit test file '' not found."
+ );
+#endif // 0
// Neither posix nor msw allows NUL in paths.
std::string with_nulls = {'x', '\0', 'y', '\0', 'z'};
@@ -424,7 +436,8 @@ void test_path_validation()
// truncated at the first NUL, due to using std::runtime_error::what(),
// which returns "char*" string terminated by the first NUL occurring in
// it, when constructing this message, so just check that it starts with
- // the expected part.
+ // the expected part. BOOST !! Of course, that's just an expedient
+ // workaround; the defect in 'alarum' needs to be fixed.
LMI_TEST_THROW
(validate_filepath(with_nulls, context)
,std::runtime_error
@@ -432,6 +445,10 @@ void test_path_validation()
);
// Posix doesn't forbid these characters, though msw does.
+ // But of course the test only made sense for the boost
+ // implementation, which treated "<|>" as ill-formed; it's
+ // senseless now because std::filesystem::path treats any
+ // path as well-formed.
LMI_TEST_THROW
(validate_filepath("<|>", context)
,std::runtime_error
- [lmi-commits] [lmi] master updated (f62151a -> 0ed65f7), Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 9c3addb 04/28: Combine "libtool" and "environment variables" steps, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 2b7bd98 01/28: Don't run CI builds when some irrelevant files change, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master f597cba 03/28: Run CI jobs in Debian Sid container, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 8e237e4 16/28: Change the keys used for caching files, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master afebc70 10/28: Use boost_regex.hpp wrapper in configure test too, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 2537153 26/28: Fix test_path_validation() for compilers without char8_t support, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 0ed65f7 28/28: Restore (commented out) a test that failed spectacularly,
Greg Chicares <=
- [lmi-commits] [lmi] master 2808a1b 13/28: Use consistent flags for Boost.Regex build in the CI job, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 521017e 05/28: Show environment and compiler information in the CI output, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master e94f977 15/28: Run CI job steps as non-root container user, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 2213a23 22/28: Disable clang deprecated declarations warnings in uBLAS headers, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 7e32f37 02/28: Don't build Boost.Filesystem library in the CI builds any more, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 0713a8f 14/28: Don't put NORMAL_UID in the environment unnecessarily, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master aa750df 12/28: Work around global_settings_test failure in autotools builds, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 0d89ef3 07/28: Install sudo without using sudo, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master 2814dec 11/28: Check for comparison operator defaulting in configure C++ test, Greg Chicares, 2021/05/12
- [lmi-commits] [lmi] master e5160fe 20/28: Revert "Add workaround for Boost.Regex compilation with clang 11", Greg Chicares, 2021/05/12