[compiler-rt] [compiler-rt][rtsan] Fix fseek text build. (PR #123116)
David CARLIER via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 15 11:58:01 PST 2025
https://github.com/devnexen created https://github.com/llvm/llvm-project/pull/123116
None
>From dddca107242f61fe13190aedabc0c3f05f12c0a5 Mon Sep 17 00:00:00 2001
From: David Carlier <devnexen at gmail.com>
Date: Wed, 15 Jan 2025 19:56:03 +0000
Subject: [PATCH] [compiler-rt][rtsan] Fix fseek text build.
---
compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp | 1 +
1 file changed, 1 insertion(+)
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