[compiler-rt] d15d410 - [compiler-rt][rtsan] Fix fseek test build (unused variable warning). (#123116)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 15 12:33:22 PST 2025
Author: David CARLIER
Date: 2025-01-15T20:33:18Z
New Revision: d15d410a353f5e0f95daef4a0b22416d313d460d
URL: https://github.com/llvm/llvm-project/commit/d15d410a353f5e0f95daef4a0b22416d313d460d
DIFF: https://github.com/llvm/llvm-project/commit/d15d410a353f5e0f95daef4a0b22416d313d460d.diff
LOG: [compiler-rt][rtsan] Fix fseek test build (unused variable warning). (#123116)
Added:
Modified:
compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp b/compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp
index e72b810dd8c3bd..c26643c6a2d630 100644
--- a/compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp
+++ b/compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp
@@ -545,6 +545,7 @@ TEST_F(RtsanOpenedFileTest, FtelloDieWhenRealtime) {
TEST_F(RtsanOpenedFileTest, RewindDieWhenRealtime) {
int end = fseek(GetOpenFile(), 0, SEEK_END);
+ EXPECT_THAT(end, Eq(0));
auto Func = [this]() { rewind(GetOpenFile()); };
ExpectRealtimeDeath(Func, "rewind");
More information about the llvm-commits
mailing list