[llvm] [BOLT] Fix race condition in a test (PR #91866)

Maksim Panchenko via llvm-commits llvm-commits at lists.llvm.org
Sat May 11 13:22:37 PDT 2024


https://github.com/maksfb created https://github.com/llvm/llvm-project/pull/91866

Fix race condition in internal NFC test.

>From 51152e1a40a8ae53dc3f7dfa8459173f0fa9b5b0 Mon Sep 17 00:00:00 2001
From: Maksim Panchenko <maks at fb.com>
Date: Fri, 10 May 2024 16:53:44 -0700
Subject: [PATCH] [BOLT] Fix race condition in a test

Fix race condition in internal NFC test.
---
 bolt/test/runtime/bolt-reserved.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bolt/test/runtime/bolt-reserved.cpp b/bolt/test/runtime/bolt-reserved.cpp
index 5e93b4f7c3d40..c88b1e284d074 100644
--- a/bolt/test/runtime/bolt-reserved.cpp
+++ b/bolt/test/runtime/bolt-reserved.cpp
@@ -16,8 +16,8 @@
  * not enough for allocating new sections.
  */
 
-// RUN: %clang %s -o %t.exe -Wl,--no-eh-frame-hdr -Wl,-q -DTINY
-// RUN: not llvm-bolt %t.exe -o %t.bolt.exe 2>&1 | \
+// RUN: %clang %s -o %t.tiny.exe -Wl,--no-eh-frame-hdr -Wl,-q -DTINY
+// RUN: not llvm-bolt %t.tiny.exe -o %t.tiny.bolt.exe 2>&1 | \
 // RUN:   FileCheck %s --check-prefix=CHECK-TINY
 
 // CHECK-TINY: BOLT-ERROR: reserved space (1 byte) is smaller than required



More information about the llvm-commits mailing list