From 717a460867633008520713614018f3c37503a5ca Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Tue, 7 Apr 2020 09:52:12 +0200 Subject: [PATCH] Drop the number of thinlto jobs in some tests to avoid crashing on 32-bit windows --- lld/test/COFF/thinlto.ll | 2 +- lld/test/ELF/lto/thinlto.ll | 2 +- lld/test/wasm/lto/thinlto.ll | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lld/test/COFF/thinlto.ll b/lld/test/COFF/thinlto.ll index a839072..8727ac0 100644 --- a/lld/test/COFF/thinlto.ll +++ b/lld/test/COFF/thinlto.ll @@ -11,7 +11,7 @@ ; RUN: llvm-nm %T/thinlto/main.exe1.lto.obj | FileCheck %s ; RUN: lld-link /lldsavetemps /out:%T/thinlto/main.exe /entry:main /subsystem:console %T/thinlto/main.obj %T/thinlto/foo.obj /opt:lldltojobs=all ; RUN: llvm-nm %T/thinlto/main.exe1.lto.obj | FileCheck %s -; RUN: lld-link /lldsavetemps /out:%T/thinlto/main.exe /entry:main /subsystem:console %T/thinlto/main.obj %T/thinlto/foo.obj /opt:lldltojobs=1000 +; RUN: lld-link /lldsavetemps /out:%T/thinlto/main.exe /entry:main /subsystem:console %T/thinlto/main.obj %T/thinlto/foo.obj /opt:lldltojobs=100 ; RUN: llvm-nm %T/thinlto/main.exe1.lto.obj | FileCheck %s ; RUN: not lld-link /lldsavetemps /out:%T/thinlto/main.exe /entry:main /subsystem:console %T/thinlto/main.obj %T/thinlto/foo.obj /opt:lldltojobs=foo 2>&1 | FileCheck %s --check-prefix=BAD-JOBS ; BAD-JOBS: error: /opt:lldltojobs: invalid job count: foo diff --git a/lld/test/ELF/lto/thinlto.ll b/lld/test/ELF/lto/thinlto.ll index 50e31d1..918f6ff 100644 --- a/lld/test/ELF/lto/thinlto.ll +++ b/lld/test/ELF/lto/thinlto.ll @@ -42,7 +42,7 @@ ; Test with many more threads than the system has ; RUN: rm -f %t31.lto.o %t32.lto.o -; RUN: ld.lld -save-temps --thinlto-jobs=1000 -shared %t1.o %t2.o -o %t3 +; RUN: ld.lld -save-temps --thinlto-jobs=100 -shared %t1.o %t2.o -o %t3 ; RUN: llvm-nm %t31.lto.o | FileCheck %s --check-prefix=NM1 ; RUN: llvm-nm %t32.lto.o | FileCheck %s --check-prefix=NM2 diff --git a/lld/test/wasm/lto/thinlto.ll b/lld/test/wasm/lto/thinlto.ll index da42469..6c6fada 100644 --- a/lld/test/wasm/lto/thinlto.ll +++ b/lld/test/wasm/lto/thinlto.ll @@ -34,7 +34,7 @@ ; Test with many more threads than the system has ; RUN: rm -f %t31.lto.o %t32.lto.o -; RUN: wasm-ld -r -save-temps --thinlto-jobs=1000 %t1.o %t2.o -o %t3 +; RUN: wasm-ld -r -save-temps --thinlto-jobs=100 %t1.o %t2.o -o %t3 ; RUN: llvm-nm %t31.lto.o | FileCheck %s --check-prefix=NM1 ; RUN: llvm-nm %t32.lto.o | FileCheck %s --check-prefix=NM2 -- 2.7.4