[llvm] [JITLink][Test][Fix] sectcreate.test always passed (PR #89555)

Isaac David via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 21 15:53:27 PDT 2024


https://github.com/orion160 created https://github.com/llvm/llvm-project/pull/89555

#89554

>From 41e8ec7cd7bb8b9ddd4796689cd1c51f17189945 Mon Sep 17 00:00:00 2001
From: Isaac David <61389980+orion160 at users.noreply.github.com>
Date: Sun, 21 Apr 2024 17:52:39 -0500
Subject: [PATCH] [JITLink][Test][Fix] sectcreate.test always passed

---
 llvm/test/ExecutionEngine/JITLink/Generic/sectcreate.test | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/test/ExecutionEngine/JITLink/Generic/sectcreate.test b/llvm/test/ExecutionEngine/JITLink/Generic/sectcreate.test
index c09513a7d3707c..141296f6c2b6b6 100644
--- a/llvm/test/ExecutionEngine/JITLink/Generic/sectcreate.test
+++ b/llvm/test/ExecutionEngine/JITLink/Generic/sectcreate.test
@@ -1,7 +1,7 @@
 # RUN: llc -filetype=obj -o %t.o %S/Inputs/main-ret-0.ll
 # RUN: llvm-jitlink -noexec \
 # RUN:   -sectcreate __data,%S/Inputs/sectcreate-data.txt at foo=0 \
-# RUN:   %t.o
+# RUN:   %t.o --check=%s
 #
 # Use -sectcreate to create a section from a data file.
 
@@ -13,4 +13,4 @@
 # this context.
 # XFAIL: target={{.*}}-windows-gnu
 
-# jitlink-check: *{4}foo = 0x2a2a5a5a
\ No newline at end of file
+# jitlink-check: *{4}foo = 0x2a2a5a5a



More information about the llvm-commits mailing list