diff --git a/llvm/test/tools/llvm-dwarfdump/X86/output.s b/llvm/test/tools/llvm-dwarfdump/X86/output.s --- a/llvm/test/tools/llvm-dwarfdump/X86/output.s +++ b/llvm/test/tools/llvm-dwarfdump/X86/output.s @@ -12,10 +12,10 @@ ^M # RUN: touch %t3.txt^M # RUN: chmod 444 %t3.txt^M -# RUN: not llvm-dwarfdump -o=%t3.txt %t.o 2>&1 | FileCheck %s --check-prefix=ERROR1 -DFILE=%t3.txt^M +# RUN: not llvm-dwarfdump -o=%t3.txt %t.o 2>&1 | FileCheck %s --check-prefix=ERROR1 -DFILE=%t3.txt -DMSG=%errc_EACCES^M ^M -# RUN: not llvm-dwarfdump -o= %t.o 2>&1 | FileCheck %s --check-prefix=ERROR2^M +# RUN: not llvm-dwarfdump -o= %t.o 2>&1 | FileCheck %s --check-prefix=ERROR2 -DMSG=%errc_ENOENT^M ^M # CHECK: DW_TAG_compile_unit^M -# ERROR1: unable to open output file [[FILE]]: {{[pP]}}ermission denied^M -# ERROR2: unable to open output file : {{[nN]}}o such file or directory^M +# ERROR1: unable to open output file [[FILE]]: [[MSG]]^M +# ERROR2: unable to open output file : [[MSG]]^M