From 5176a7671f91c1ceb88578e11c635e70e9217f90 Mon Sep 17 00:00:00 2001 From: Alex Brachet Date: Mon, 11 Jul 2022 22:46:06 +0000 Subject: [PATCH] Fix build on Windows It seems like the `sed` on Windows is not particularly smart. It's not actually needed in this place, so I've removed it's usage and just created an invalid yaml another way. --- lld/test/COFF/vfsoverlay.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/test/COFF/vfsoverlay.test b/lld/test/COFF/vfsoverlay.test index 0a34e597c507..5e27d6e67151 100644 --- a/lld/test/COFF/vfsoverlay.test +++ b/lld/test/COFF/vfsoverlay.test @@ -9,7 +9,7 @@ # RUN: | FileCheck %s # CHECK: error: {{[Nn]}}o such file or directory -# RUN: sed -e "s|{|bad|g" %t/overlay.yaml > %t/badoverlay.yaml +# RUN: echo "invalid yaml" > %t/badoverlay.yaml # RUN: not lld-link %S/Inputs/hello64.obj /libpath:/noexist /out:%t.exe /entry:main /defaultlib:notstd64 /vfsoverlay:%t/badoverlay.yaml 2>&1 \ # RUN: | FileCheck %s --check-prefix=BAD-OVERLAY # BAD-OVERLAY: error: Invalid vfs overlay