[compiler-rt] [compiler-rt][rtsan] Fix fseek text build. (PR #123116)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 15 11:58:33 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: David CARLIER (devnexen)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/123116.diff


1 Files Affected:

- (modified) compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp (+1) 


``````````diff
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");

``````````

</details>


https://github.com/llvm/llvm-project/pull/123116


More information about the llvm-commits mailing list