[support] Attempt to fix PrintNumber test for Solaris
authorPaul Kirth <paulkirth@google.com>
Fri, 24 Mar 2023 16:02:49 +0000 (16:02 +0000)
committerPaul Kirth <paulkirth@google.com>
Fri, 24 Mar 2023 16:48:18 +0000 (16:48 +0000)
commit6d5845c5c335f7146c9d3c8b2b4946609aaea2c2
tree38069c0e506820dfff937f402b228c9d10b1b43a
parent3884f07a55abfad6683e22bcfec3ea7647b3371a
[support] Attempt to fix PrintNumber test for Solaris

NaN and Inf are still causing some problems in a formatting test.
This patch makes the checked format string exactly match the internal
JSON format string. If there are still problems, we should disable
testing Inf and NaN values until we can come to a portable solution.

Reviewed By: abhina.sreeskantharajan

Differential Revision: https://reviews.llvm.org/D146818
llvm/unittests/Support/ScopedPrinterTest.cpp