[test] Use host platform specific error message substitution in lit tests
authorAbhina Sreeskantharajan <Abhina.Sreeskantharajan@ibm.com>
Fri, 5 Mar 2021 12:20:51 +0000 (07:20 -0500)
committerAbhina Sreeskantharajan <Abhina.Sreeskantharajan@ibm.com>
Fri, 5 Mar 2021 12:21:53 +0000 (07:21 -0500)
commitc52fe0b02172e707aa2ba38cd2e01a1fc70dd0da
tree0bdf497d8089125da7645258f8edaaa6ecfa6f2b
parente0e73714fbfeacad1a3adc0c6c8dbedcebc53ebc
[test] Use host platform specific error message substitution in lit tests

This patch uses the errno python library to print out the correct error messages instead of hardcoding the error message per platform.

Reviewed By: jhenderson, ASDenysPetrov

Differential Revision: https://reviews.llvm.org/D97472
llvm/test/tools/llvm-elfabi/fail-file-write-windows.test
llvm/test/tools/yaml2obj/ELF/DWARF/debug-gnu-pubnames.yaml
llvm/test/tools/yaml2obj/ELF/DWARF/debug-gnu-pubtypes.yaml
llvm/utils/lit/lit/llvm/config.py