[libcxx-commits] [libcxx] [libcxx][test] Fix a test for the range of file offsets on ARMv7 Linux targets. (PR #123449)

Vladimir Vereschaka via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jan 17 21:36:14 PST 2025


https://github.com/vvereschaka updated https://github.com/llvm/llvm-project/pull/123449

>From f8504783b68fa0c7af3f194206a320b834dfc4bd Mon Sep 17 00:00:00 2001
From: Vladimir Vereschaka <vvereschaka at accesssoftek.com>
Date: Fri, 17 Jan 2025 21:23:13 -0800
Subject: [PATCH 1/2] [libcxx][test] Fix a test for the range of file offsets
 on ARMv7 targets.

XFAIL offset_range test on the ARMv7 targets (32-bit).

Ref PR #122798
---
 .../fstreams/ifstream.members/offset_range.pass.cpp          | 5 +++++
 1 file changed, 5 insertions(+)

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>

>From 59b0b25c0e23cfa500784d24c04a3eff1ceaddee Mon Sep 17 00:00:00 2001
From: Vladimir Vereschaka <vvereschaka at accesssoftek.com>
Date: Fri, 17 Jan 2025 21:35:41 -0800
Subject: [PATCH 2/2] Fixed formatting

---
 .../fstreams/ifstream.members/offset_range.pass.cpp             | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 9bb52c8ac8f481..0563e760809756 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,7 +28,7 @@
 //
 // XFAIL: target=powerpc-{{.+}}-aix{{.*}}
 
-// By default, off_t is typically a 32-bit integer on ARMv7 Linux systems, 
+// 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{{.*}}



More information about the libcxx-commits mailing list