From 0becc27ebfec02c3d667785e55b366bc1a5336a7 Mon Sep 17 00:00:00 2001 From: Victor Huang Date: Fri, 28 Aug 2020 15:09:17 -0500 Subject: [PATCH] [LLD][PowerPC] Remove redundant file write out in the test cases Fix the time out test failure on lld-x86_64-freebsd build bot. Peer reviewed by: stefanp, nemanjai --- lld/test/ELF/ppc64-pcrel-long-branch-error.s | 8 ++++---- lld/test/ELF/ppc64-toc-call-to-pcrel-long-jump.s | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lld/test/ELF/ppc64-pcrel-long-branch-error.s b/lld/test/ELF/ppc64-pcrel-long-branch-error.s index ac0006e..43db708 100644 --- a/lld/test/ELF/ppc64-pcrel-long-branch-error.s +++ b/lld/test/ELF/ppc64-pcrel-long-branch-error.s @@ -5,14 +5,14 @@ # RUN: }' > %t.script # RUN: llvm-mc -filetype=obj -triple=ppc64le %s -o %t.o -# RUN: not ld.lld -T %t.script %t.o -o %t 2>&1 >/dev/null | FileCheck %s +# RUN: not ld.lld -T %t.script %t.o -o /dev/null 2>&1 | FileCheck %s # RUN: llvm-mc -filetype=obj -triple=ppc64le -defsym HIDDEN=1 %s -o %t.o -# RUN: not ld.lld -shared -T %t.script %t.o -o %t.so 2>&1 >/dev/null | FileCheck %s +# RUN: not ld.lld -shared -T %t.script %t.o -o /dev/null 2>&1 | FileCheck %s # RUN: llvm-mc -filetype=obj -triple=ppc64 %s -o %t.o -# RUN: not ld.lld -T %t.script %t.o -o %t 2>&1 >/dev/null | FileCheck %s +# RUN: not ld.lld -T %t.script %t.o -o /dev/null 2>&1 | FileCheck %s # RUN: llvm-mc -filetype=obj -triple=ppc64 -defsym HIDDEN=1 %s -o %t.o -# RUN: not ld.lld -shared -T %t.script %t.o -o %t.so 2>&1 >/dev/null | FileCheck %s +# RUN: not ld.lld -shared -T %t.script %t.o -o /dev/null 2>&1 | FileCheck %s # CHECK: error: offset overflow 34 bits, please compile using the large code model diff --git a/lld/test/ELF/ppc64-toc-call-to-pcrel-long-jump.s b/lld/test/ELF/ppc64-toc-call-to-pcrel-long-jump.s index 89f62c7..a6e99db 100644 --- a/lld/test/ELF/ppc64-toc-call-to-pcrel-long-jump.s +++ b/lld/test/ELF/ppc64-toc-call-to-pcrel-long-jump.s @@ -5,10 +5,10 @@ # RUN: }' > %t.script # RUN: llvm-mc -filetype=obj -triple=powerpc64le %s -o %t.o -# RUN: not ld.lld -T %t.script %t.o -o %t 2>&1 >/dev/null | FileCheck %s +# RUN: not ld.lld -T %t.script %t.o -o /dev/null 2>&1 | FileCheck %s # RUN: llvm-mc -filetype=obj -triple=powerpc64 %s -o %t.o -# RUN: not ld.lld -T %t.script %t.o -o %t 2>&1 >/dev/null | FileCheck %s +# RUN: not ld.lld -T %t.script %t.o -o /dev/null 2>&1 | FileCheck %s # CHECK: error: R2 save stub branch offset is too large: -268501028 -- 2.7.4