[libcxx-commits] [libcxx] [libcxx][test] Fix a test for the range of file offsets on ARMv7 Linux targets. (PR #123449)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jan 17 21:30:41 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Vladimir Vereschaka (vvereschaka)
<details>
<summary>Changes</summary>
XFAIL the `offset_range` test on the ARMv7 Linux targets (32-bit).
Ref PR #<!-- -->122798
---
Full diff: https://github.com/llvm/llvm-project/pull/123449.diff
1 Files Affected:
- (modified) libcxx/test/std/input.output/file.streams/fstreams/ifstream.members/offset_range.pass.cpp (+5)
``````````diff
diff --git a/libcxx/test/std/input.output/file.streams/fstreams/ifstream.members/offset_range.pass.cpp b/libcxx/test/std/input.output/file.streams/fstreams/ifstream.members/offset_range.pass.cpp
index 5afd4465db31e0..9bb52c8ac8f481 100644
--- a/libcxx/test/std/input.output/file.streams/fstreams/ifstream.members/offset_range.pass.cpp
+++ b/libcxx/test/std/input.output/file.streams/fstreams/ifstream.members/offset_range.pass.cpp
@@ -28,6 +28,11 @@
//
// XFAIL: target=powerpc-{{.+}}-aix{{.*}}
+// By default, off_t is typically a 32-bit integer on ARMv7 Linux systems,
+// meaning it can represent file sizes up to 2GB (2^31 bytes) only.
+//
+// XFAIL: target=armv7{{.*}}-{{.+}}-linux{{.*}}
+
#include <fstream>
#include <iostream>
#include <cassert>
``````````
</details>
https://github.com/llvm/llvm-project/pull/123449
More information about the libcxx-commits
mailing list