[compiler-rt] [sanitizer] Use /tmp/ not /tmp/dir/ in tests (PR #117759)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 26 10:24:00 PST 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 86f7f089ee6bcf01bf082ca802220b1143a3ade9 2fb82191b8a54dd00fd002ee633a5f1dadb871e8 --extensions cpp -- compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp
index 97337ef13e..272520fa51 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp
@@ -345,8 +345,7 @@ TEST(SanitizerCommon, ReportFile) {
SpinMutex report_file_mu;
ReportFile report_file = {&report_file_mu, kStderrFd, "", "", 0};
char tmpfile[128];
- temp_file_name(tmpfile, sizeof(tmpfile),
- "sanitizer_common.reportfile.tmp.");
+ temp_file_name(tmpfile, sizeof(tmpfile), "sanitizer_common.reportfile.tmp.");
report_file.SetReportPath(tmpfile);
const char *path = report_file.GetReportPath();
EXPECT_EQ(internal_strncmp(tmpfile, path, strlen(tmpfile)), 0);
``````````
</details>
https://github.com/llvm/llvm-project/pull/117759
More information about the llvm-commits
mailing list