From 169a6374dcab8a88f887fb3dcdaccdd97857c6ca Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Wed, 3 Feb 2016 17:25:11 +0000 Subject: [PATCH] Do not expect /dev/null (or NUL) non-mmap'able. On some Windows environment, this test did not fail, because opening NUL with FileOutputBuffer didn't fail. Thanks to George Rimar for reporting. llvm-svn: 259669 --- lld/test/ELF/driver.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/test/ELF/driver.test b/lld/test/ELF/driver.test index 70fe7baf2a5d..957235805f12 100644 --- a/lld/test/ELF/driver.test +++ b/lld/test/ELF/driver.test @@ -11,9 +11,9 @@ # CHECK: Unable to find library -lnosuchlib # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t -# RUN: not ld.lld %t -o /dev/null 2>&1 | FileCheck -check-prefix=CHECK2 %s +# RUN: not ld.lld %t -o /no/such/file 2>&1 | FileCheck -check-prefix=CHECK2 %s -# CHECK2: failed to open +# CHECK2: failed to open /no/such/file .globl _start _start: