mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-10-07 10:54:01 +00:00
[libc] Disable -NaN test on float128 systems (#70146)
Some float128 systems (specifically the ones used for aarch64 buildbots) don't respect signs for long double NaNs. This patch disables the printf test that was failing due to this.
This commit is contained in:
parent
2e3c62b15d
commit
2282af26ea
@ -1008,8 +1008,12 @@ TEST_F(LlvmLibcSPrintfTest, FloatDecimalConv) {
|
||||
written = LIBC_NAMESPACE::sprintf(buff, "%Lf", ld_nan);
|
||||
ASSERT_STREQ_LEN(written, buff, "nan");
|
||||
|
||||
// Some float128 systems (specifically the ones used for aarch64 buildbots)
|
||||
// don't respect signs for long double NaNs.
|
||||
#if defined(SPECIAL_X86_LONG_DOUBLE) || defined(LONG_DOUBLE_IS_DOUBLE)
|
||||
written = LIBC_NAMESPACE::sprintf(buff, "%LF", -ld_nan);
|
||||
ASSERT_STREQ_LEN(written, buff, "-NAN");
|
||||
#endif
|
||||
|
||||
// Length Modifier Tests.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user