llvm-reduce: Try to fix error message test on windows
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 3 Jan 2023 14:56:19 +0000 (09:56 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 3 Jan 2023 14:58:29 +0000 (09:58 -0500)
commit3f3b71ae02af434981a73acced146f4d849a87fc
tree3f3ba2903b60ece362b9b3b1b1c7a50b6fe29704
parent5b25a0bcb14ba0b772a1d6b4ebbed5869a4a0fa7
llvm-reduce: Try to fix error message test on windows

It seems the execute implementations have gone out of their way to
produce inconsistent error messages. The unix version explicitly
checks if the file exists before trying to execute. The windows
version checks if it's executable. I don't understand why they
wouldn't just try the execution and check the error code.
llvm/test/tools/llvm-reduce/fail-execute-test.test