[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:30:13 PST 2025
https://github.com/vvereschaka created https://github.com/llvm/llvm-project/pull/123449
XFAIL the `offset_range` test on the ARMv7 Linux targets (32-bit).
Ref PR #122798
>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] [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>
More information about the libcxx-commits
mailing list