mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-25 14:50:26 +00:00
[libcxx] [test] Disable a test regarding error behaviour for excessively long paths on windows
Checking for the existence of an invalid long path name isn't an error in itself on windows. Differential Revision: https://reviews.llvm.org/D98141
This commit is contained in:
parent
868187df21
commit
8ba05e1489
@ -85,6 +85,9 @@ TEST_CASE(test_exists_fails)
|
||||
TEST_CHECK_THROW(filesystem_error, exists(file));
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
// Checking for the existence of an invalid long path name doesn't
|
||||
// trigger errors on windows.
|
||||
TEST_CASE(test_name_too_long) {
|
||||
std::string long_name(2500, 'a');
|
||||
const path file(long_name);
|
||||
@ -93,5 +96,6 @@ TEST_CASE(test_name_too_long) {
|
||||
TEST_CHECK(exists(file, ec) == false);
|
||||
TEST_CHECK(ec);
|
||||
}
|
||||
#endif
|
||||
|
||||
TEST_SUITE_END()
|
||||
|
Loading…
Reference in New Issue
Block a user