File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
tests/std/tests/P0218R1_filesystem Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ _NODISCARD inline bool __std_is_file_not_found(const __std_win_error _Error) noe
53
53
case __std_win_error::_Path_not_found:
54
54
case __std_win_error::_Error_bad_netpath:
55
55
case __std_win_error::_Invalid_name:
56
+ case __std_win_error::_Directory_name_is_invalid: // Windows 11 24H2
56
57
return true ;
57
58
default :
58
59
return false ;
Original file line number Diff line number Diff line change @@ -3950,7 +3950,7 @@ void test_devcom_953628() { // COMPILE-ONLY
3950
3950
path{S{}};
3951
3951
}
3952
3952
3953
- int wmain (int argc, wchar_t * argv[]) {
3953
+ int run_all_tests (int argc, wchar_t * argv[]) {
3954
3954
error_code ec;
3955
3955
3956
3956
// Store old path and change current path to a temporary path
@@ -4077,4 +4077,20 @@ int wmain(int argc, wchar_t* argv[]) {
4077
4077
EXPECT (good (ec));
4078
4078
4079
4079
assert (pass);
4080
+
4081
+ return 0 ;
4082
+ }
4083
+
4084
+ int wmain (int argc, wchar_t * argv[]) {
4085
+ try {
4086
+ return run_all_tests (argc, argv);
4087
+ } catch (const filesystem_error& fe) {
4088
+ cout << " filesystem_error: " << fe.what () << endl;
4089
+ } catch (const exception& e) {
4090
+ cout << " exception: " << e.what () << endl;
4091
+ } catch (...) {
4092
+ cout << " Unknown exception." << endl;
4093
+ }
4094
+
4095
+ return EXIT_FAILURE;
4080
4096
}
You can’t perform that action at this time.
0 commit comments