[PATCH] D33130: Disable threads in a few tests
Rafael Ávila de Espíndola via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 12 08:24:21 PDT 2017
rafael created this revision.
Because of https://bugs.llvm.org/show_bug.cgi?id=32942 some tests take a long time to run. Right now running
./bin/llvm-lit --time-tests -sv ~/llvm/lld/test/ELF
takes 7.08s, the slowest tests being
2.77s: lld :: ELF/many-alloc-sections.s
6.15s: lld :: ELF/many-sections.s
with this patch the same command takes 2.37s and the slowest tests are
1.40s: lld :: ELF/many-alloc-sections.s
1.47s: lld :: ELF/many-sections.s
https://reviews.llvm.org/D33130
Files:
test/ELF/many-alloc-sections.s
test/ELF/many-sections.s
Index: test/ELF/many-sections.s
===================================================================
--- test/ELF/many-sections.s
+++ test/ELF/many-sections.s
@@ -11,12 +11,12 @@
// CHECK-NEXT: Section: dm (0xFF00)
-// RUN: ld.lld %t -o %t2
+// RUN: ld.lld %t -o %t2 --no-threads
// RUN: llvm-readobj -t %t2 | FileCheck --check-prefix=LINKED %s
// Test also with a linker script.
// RUN: echo "SECTIONS { . = SIZEOF_HEADERS; .text : { *(.text) } }" > %t.script
-// RUN: ld.lld -T %t.script %t -o %t2
+// RUN: ld.lld -T %t.script %t -o %t2 --no-threads
// RUN: llvm-readobj -t %t2 | FileCheck --check-prefix=LINKED %s
// Test that _start is in the correct section.
Index: test/ELF/many-alloc-sections.s
===================================================================
--- test/ELF/many-alloc-sections.s
+++ test/ELF/many-alloc-sections.s
@@ -1,6 +1,6 @@
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t.o
// RUN: echo "SECTIONS { . = SIZEOF_HEADERS; .text : { *(.text) } }" > %t.script
-// RUN: ld.lld -T %t.script %t.o -o %t
+// RUN: ld.lld -T %t.script %t.o -o %t --no-threads
// RUN: llvm-readobj -t %t | FileCheck %s
// Test that _start is in the correct section.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33130.98770.patch
Type: text/x-patch
Size: 1207 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170512/25207b27/attachment.bin>
More information about the llvm-commits
mailing list