[libcxx] [test] Fix max_size.pass.cpp for PowerPC targets
authorAmy Kwan <amy.kwan1@ibm.com>
Thu, 11 Aug 2022 20:53:43 +0000 (15:53 -0500)
committerTobias Hieta <tobias@hieta.se>
Mon, 15 Aug 2022 07:31:19 +0000 (09:31 +0200)
commitab09289dbf1d08db83e16314cf425d25c0138e66
treedff606e38cbbdda2767acf86ddc71c47426fcab6
parent6ce43697482ea0c841f0cf614fcda09ceeb325a9
[libcxx] [test] Fix max_size.pass.cpp for PowerPC targets

This patch fixes the max_size.pass.cpp test for PowerPC targets, depending on
endianness.

We will exhibit the full_size() behaviour for little endian
(where __endian_factor = 2 ), and the half_size() behaviour for
big endian (where __endian_factor = 1).

Differential Revision: https://reviews.llvm.org/D131682

(cherry picked from commit e2e9e2ce8efd12f0f2b7a12be113d4241706ddf2)
libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp