[compiler-rt] [llvm] [llvm-lit] Fix error in compiler-rt tests when using lit internal shell (PR #102069)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 7 09:47:11 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff a0ed7d6c5fa1438983ee2c1ad25fbb53644d5eba 40c403f22a6a57b054641998be32801c8509975a --extensions c,cpp -- compiler-rt/test/dfsan/custom.cpp compiler-rt/test/dfsan/flags.c compiler-rt/test/dfsan/fork.cpp compiler-rt/test/dfsan/origin_limit.c compiler-rt/test/msan/Linux/sendmsg.cpp compiler-rt/test/msan/chained_origin_empty_stack.cpp compiler-rt/test/msan/chained_origin_limits.cpp compiler-rt/test/msan/coverage-levels.cpp compiler-rt/test/msan/dtor-member.cpp compiler-rt/test/msan/fork.cpp compiler-rt/test/msan/interception_sigaction_test.cpp compiler-rt/test/msan/memcmp_test.cpp compiler-rt/test/msan/msan_check_mem_is_initialized.cpp compiler-rt/test/msan/poison_in_free.cpp compiler-rt/test/msan/print_stats.cpp compiler-rt/test/msan/recover-dso.cpp compiler-rt/test/msan/recover.cpp compiler-rt/test/msan/release_origin.c compiler-rt/test/msan/strcmp.c compiler-rt/test/msan/strndup.cpp compiler-rt/test/sanitizer_common/TestCases/Linux/signal_segv_handler.cpp compiler-rt/test/ubsan/TestCases/Misc/Linux/static-link.cpp compiler-rt/test/xray/TestCases/Posix/arg1-arg0-logging.cpp compiler-rt/test/xray/TestCases/Posix/arg1-logger.cpp compiler-rt/test/xray/TestCases/Posix/arg1-logging-implicit-this.cpp compiler-rt/test/xray/TestCases/Posix/argv0-log-file-name.cpp compiler-rt/test/xray/TestCases/Posix/coverage-sample.cpp compiler-rt/test/xray/TestCases/Posix/fdr-reinit.cpp compiler-rt/test/xray/TestCases/Posix/fixedsize-logging.cpp compiler-rt/test/xray/TestCases/Posix/func-id-utils.cpp compiler-rt/test/xray/TestCases/Posix/optional-inmemory-log.cpp compiler-rt/test/xray/TestCases/Posix/patching-unpatching.cpp compiler-rt/test/xray/TestCases/Posix/pic_test.cpp compiler-rt/test/xray/TestCases/Posix/typed-event-logging.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/test/msan/chained_origin_limits.cpp b/compiler-rt/test/msan/chained_origin_limits.cpp
index 3e146b7054..7c69a7c9b7 100644
--- a/compiler-rt/test/msan/chained_origin_limits.cpp
+++ b/compiler-rt/test/msan/chained_origin_limits.cpp
@@ -30,7 +30,6 @@
// RUN: env MSAN_OPTIONS=origin_history_size=7,origin_history_per_stack_limit=0 not %run %t >%t.out 2>&1
// RUN: FileCheck %s --check-prefix=CHECK7 < %t.out
-
// Heap origin, with calls.
// RUN: %clangxx_msan -mllvm -msan-instrumentation-with-call-threshold=0 -fsanitize-memory-track-origins=2 -O3 %s -o %t
@@ -46,7 +45,6 @@
// RUN: env MSAN_OPTIONS=origin_history_size=7,origin_history_per_stack_limit=0 not %run %t >%t.out 2>&1
// RUN: FileCheck %s --check-prefix=CHECK7 < %t.out
-
// Stack origin, with calls.
// RUN: %clangxx_msan -DSTACK -mllvm -msan-instrumentation-with-call-threshold=0 -fsanitize-memory-track-origins=2 -O3 %s -o %t
diff --git a/compiler-rt/test/msan/print_stats.cpp b/compiler-rt/test/msan/print_stats.cpp
index d9a78a5329..228479c5dc 100644
--- a/compiler-rt/test/msan/print_stats.cpp
+++ b/compiler-rt/test/msan/print_stats.cpp
@@ -1,4 +1,4 @@
-// RUN: %clangxx_msan -fsanitize-memory-track-origins=2 -g %s -o %t
+// RUN: %clangxx_msan -fsanitize-memory-track-origins=2 -g %s -o %t
// RUN: %run %t 2>&1 | \
// RUN: FileCheck --check-prefixes=CHECK,CHECK-NOSTATS %s
// RUN: env MSAN_OPTIONS=print_stats=1 %run %t 2>&1 | \
@@ -6,7 +6,7 @@
// RUN: env MSAN_OPTIONS=print_stats=1,atexit=1 %run %t 2>&1 | \
// RUN: FileCheck --check-prefixes=CHECK,CHECK-STATS %s
-// RUN: %clangxx_msan -fsanitize-memory-track-origins=2 -g -DPOSITIVE=1 %s -o %t
+// RUN: %clangxx_msan -fsanitize-memory-track-origins=2 -g -DPOSITIVE=1 %s -o %t
// RUN: not %run %t 2>&1 | \
// RUN: FileCheck --check-prefixes=CHECK,CHECK-NOSTATS %s
// RUN: env MSAN_OPTIONS=print_stats=1 not %run %t 2>&1 | \
``````````
</details>
https://github.com/llvm/llvm-project/pull/102069
More information about the llvm-commits
mailing list