[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
Sat Jan 18 14:27:51 PST 2025


================
@@ -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{{.*}}
----------------
vvereschaka wrote:

Hm, ok. I have marked this test as UNSUPPORTED for `armv7-unknown-linux-gnueabihf` targets in that case. It will fix the failed test on the public buildbot, that is broken for more than 3 days already.

https://lab.llvm.org/buildbot/#/builders/38 
https://lab.llvm.org/buildbot/#/builders/38/builds/1865/steps/15/logs/stdio

>Apparently that setup has got 64 bit off_t by default?

The buildbot's ARMv7 board setup has 32-bit `off_t` by default (as it expected):
```
ubuntu at jetson6:~$ ./t.tmp.exe
__WORDSIZE: 32
sizeof(off_t): 4
^C
```


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


More information about the libcxx-commits mailing list