[PATCH] D139651: [BOLT][TEST] Limit iterations in X86/exceptions-pic.test

Amir Ayupov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 8 10:17:24 PST 2022


Amir created this revision.
Amir added a reviewer: bolt.
Herald added a reviewer: rafauler.
Herald added subscribers: treapster, ayermolo.
Herald added a reviewer: maksfb.
Herald added a project: All.
Amir requested review of this revision.
Herald added subscribers: llvm-commits, yota9.
Herald added a project: LLVM.

The test has 3 invocations with 1M iterations each, which adds delay to fast
check-bolt testing. Reduce the number to 1K.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139651

Files:
  bolt/test/runtime/X86/Inputs/exception4.cpp
  bolt/test/runtime/X86/exceptions-pic.test


Index: bolt/test/runtime/X86/exceptions-pic.test
===================================================================
--- bolt/test/runtime/X86/exceptions-pic.test
+++ bolt/test/runtime/X86/exceptions-pic.test
@@ -3,10 +3,15 @@
 REQUIRES: x86_64-linux
 
 RUN: %clangxx -fpic -Wl,-q %S/Inputs/exception4.cpp -o %t.pic
-RUN: llvm-bolt %t.pic -o %t && %t 2>&1 | FileCheck %s
-RUN: llvm-bolt --relocs --use-old-text %t.pic -o %t && %t 2>&1 | FileCheck %s
-RUN: llvm-bolt %t.pic -o %t --split-functions --split-strategy=all --split-eh && \
-RUN:     %t 2>&1 | FileCheck %s
+
+RUN: llvm-bolt %t.pic -o %t
+RUN: %t 2>&1 | FileCheck %s
+
+RUN: llvm-bolt --relocs --use-old-text %t.pic -o %t
+RUN: %t 2>&1 | FileCheck %s
+
+RUN: llvm-bolt %t.pic -o %t --split-functions --split-strategy=all --split-eh
+RUN: %t 2>&1 | FileCheck %s
 
 CHECK: catch 2
 CHECK-NEXT: catch 1
Index: bolt/test/runtime/X86/Inputs/exception4.cpp
===================================================================
--- bolt/test/runtime/X86/Inputs/exception4.cpp
+++ bolt/test/runtime/X86/Inputs/exception4.cpp
@@ -22,7 +22,7 @@
 
 int main(int argc, char **argv)
 {
-  for(unsigned i = 0; i < 1000000; ++i) {
+  for (unsigned i = 0; i < 1000; ++i) {
     try {
       if (argc == 2) {
         never_throws(); // should be cold


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139651.481350.patch
Type: text/x-patch
Size: 1293 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221208/c8e704a5/attachment.bin>


More information about the llvm-commits mailing list