diff --git a/bolt/test/runtime/X86/Inputs/exception4.cpp b/bolt/test/runtime/X86/Inputs/exception4.cpp --- a/bolt/test/runtime/X86/Inputs/exception4.cpp +++ b/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 diff --git a/bolt/test/runtime/X86/exceptions-pic.test b/bolt/test/runtime/X86/exceptions-pic.test --- a/bolt/test/runtime/X86/exceptions-pic.test +++ b/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