[all-commits] [llvm/llvm-project] 67fa6e: [clang-doc] [test] Generalize error message patter...
Martin Storsjö via All-commits
all-commits at lists.llvm.org
Tue Jun 3 09:45:16 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 67fa6ea7d494d31e08fc7e32ddcb383184df8db8
https://github.com/llvm/llvm-project/commit/67fa6ea7d494d31e08fc7e32ddcb383184df8db8
Author: Martin Storsjö <martin at martin.st>
Date: 2025-06-03 (Tue, 03 Jun 2025)
Changed paths:
M clang-tools-extra/test/clang-doc/invalid-options.cpp
Log Message:
-----------
[clang-doc] [test] Generalize error message patterns (#142373)
On Windows, we hit the "no such file or directory" case, not the "Not a
directory" one.
MS STL produces the "no such file or directory" message for
`std::error_code(ENOENT, std::generic_category()).message()`, while
libc++ and libstdc++ produce a similar message with a capital N.
Adjust the error message regex to match for either of them.
That said, this kind of test is very brittle with respect to
portability.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list