[PATCH] D97472: [test] Use host platform specific error message substitution in lit tests
Denys Petrov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 25 07:45:36 PST 2021
ASDenysPetrov added a comment.
In D95246#2587526 <https://reviews.llvm.org/D95246#2587526>, @abhina.sreeskantharajan wrote:
> Thanks, I'm also not sure if the second way is possible. I had another idea but I will need @ASDenysPetrov to test it out.
> Does the following python program print out the correct error string for you?
>
> import errno
> import os
> print ( os.strerror(errno.ENOENT))
>
> If so, we can use this as the error message instead of hardcoding it per platform.
I've tested whis patch. Yes, I confirm, it works! Well done!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97472/new/
https://reviews.llvm.org/D97472
More information about the llvm-commits
mailing list