From 4d535299fcbe9f3709e0fe5d8649b319ba4328b9 Mon Sep 17 00:00:00 2001 From: George Rimar Date: Sat, 4 Aug 2018 13:41:12 +0000 Subject: [PATCH] [LLD][ELD] - Revert r338959 "[LLD][ELF] - Added file name and a test for case when we fail to write the output." It broke BB: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/34382/steps/test/logs/stdio http://lab.llvm.org:8011/builders/lld-x86_64-freebsd/builds/21932/steps/test_lld/logs/stdio llvm-svn: 338960 --- lld/ELF/Writer.cpp | 3 +-- lld/test/ELF/driver-access2.test | 17 ----------------- 2 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 lld/test/ELF/driver-access2.test diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 1de2ceacb6bd..28b433929fe6 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -513,8 +513,7 @@ template void Writer::run() { return; if (auto E = Buffer->commit()) - error("failed to write to the output file " + Config->OutputFile + " :" + - toString(std::move(E))); + error("failed to write to the output file: " + toString(std::move(E))); } static bool shouldKeepInSymtab(SectionBase *Sec, StringRef SymName, diff --git a/lld/test/ELF/driver-access2.test b/lld/test/ELF/driver-access2.test deleted file mode 100644 index f74be9c64bf3..000000000000 --- a/lld/test/ELF/driver-access2.test +++ /dev/null @@ -1,17 +0,0 @@ -# REQUIRES: x86 - -# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o - -# RUN: rm -f %t.exe -# RUN: mkdir -p %t.dir -# RUN: cd %t.dir -# RUN: touch %t.exe -# RUN: chmod 100 %t.exe -# RUN: not ld.lld %t.o -o %t.exe 2>&1 | FileCheck %s -# RUN: chmod 755 %t.exe - -# CHECK: error: failed to write to the output file {{.*}}.exe :permission denied - -.globl _start -_start: - nop