[llvm] Restrict llvm-ctxprof-util tests to linux (PR #100650)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 25 13:28:45 PDT 2024


https://github.com/mtrofin created https://github.com/llvm/llvm-project/pull/100650

Follow up from PR #100379, this is to avoid output formatting differences.

>From 620b3b8a78ddf5ef9f4c6d00350a82f4c70516d0 Mon Sep 17 00:00:00 2001
From: Mircea Trofin <mtrofin at google.com>
Date: Thu, 25 Jul 2024 13:25:29 -0700
Subject: [PATCH] Restrict llvm-ctxprof-util tests to linux

Follow up from PR #100379, this is to avoid output
formatting differences.
---
 .../tools/llvm-ctxprof-util/llvm-ctxprof-util-negative.test     | 2 ++
 llvm/test/tools/llvm-ctxprof-util/llvm-ctxprof-util.test        | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/llvm/test/tools/llvm-ctxprof-util/llvm-ctxprof-util-negative.test b/llvm/test/tools/llvm-ctxprof-util/llvm-ctxprof-util-negative.test
index 97598c11979fa..08c83c9f907fb 100644
--- a/llvm/test/tools/llvm-ctxprof-util/llvm-ctxprof-util-negative.test
+++ b/llvm/test/tools/llvm-ctxprof-util/llvm-ctxprof-util-negative.test
@@ -1,3 +1,5 @@
+; REQUIRES: x86_64-linux
+
 ; RUN: not llvm-ctxprof-util nofile.json 2>&1 | FileCheck %s --check-prefix=NO_CMD
 ; RUN: not llvm-ctxprof-util invalidCmd --input nofile.json 2>&1 | FileCheck %s --check-prefix=INVALID_CMD
 ; RUN: not llvm-ctxprof-util fromJSON nofile.json 2>&1 | FileCheck %s --check-prefix=NO_FLAG
diff --git a/llvm/test/tools/llvm-ctxprof-util/llvm-ctxprof-util.test b/llvm/test/tools/llvm-ctxprof-util/llvm-ctxprof-util.test
index d430818d05442..5a21bffa59022 100644
--- a/llvm/test/tools/llvm-ctxprof-util/llvm-ctxprof-util.test
+++ b/llvm/test/tools/llvm-ctxprof-util/llvm-ctxprof-util.test
@@ -1,3 +1,5 @@
+; REQUIRES: x86_64-linux
+
 ; RUN: mkdir -p %t
 ; RUN: llvm-ctxprof-util fromJSON --input %S/Inputs/empty.json -output %t/empty.bitstream
 ; RUN: llvm-bcanalyzer --dump %t/empty.bitstream | FileCheck %s --check-prefix=EMPTY



More information about the llvm-commits mailing list