SHA256
8
0
forked from pool/cpprest

Accepting request 860140 from home:Andreas_Schwab:Factory

- cpprest-2.10.9-disable-test-extract_floating_point.patch: Only disable
  the problematic test
- base64.patch: Portable base64
- filestream.patch: Fix type mismatch in basic_file_buffer

OBS-URL: https://build.opensuse.org/request/show/860140
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpprest?expand=0&rev=49
This commit is contained in:
2021-01-04 13:08:51 +00:00
committed by Git OBS Bridge
parent eb5c285b60
commit 7858494fec
5 changed files with 225 additions and 24 deletions

View File

@@ -1,20 +1,13 @@
diff --git a/Release/tests/functional/streams/istream_tests.cpp b/Release/tests/functional/streams/istream_tests.cpp
index d1018e31..66b3f801 100644
--- a/Release/tests/functional/streams/istream_tests.cpp
+++ b/Release/tests/functional/streams/istream_tests.cpp
@@ -1297,6 +1297,7 @@ SUITE(istream_tests)
void compare_double(double expected, double actual) { compare_floating(expected, actual, DBL_EPSILON); }
void compare_float(float expected, float actual) { compare_floating(expected, actual, FLT_EPSILON); }
+/*
TEST(extract_floating_point)
{
std::string test_string;
@@ -1343,6 +1344,7 @@ SUITE(istream_tests)
if (expected == 0) VERIFY_ARE_EQUAL(1 / expected, 1 / actual);
} while (!std_istream.eof());
}
+*/
TEST(extract_floating_point_with_exceptions)
{
Index: cpprestsdk-2.10.16/Release/tests/functional/streams/istream_tests.cpp
===================================================================
--- cpprestsdk-2.10.16.orig/Release/tests/functional/streams/istream_tests.cpp
+++ cpprestsdk-2.10.16/Release/tests/functional/streams/istream_tests.cpp
@@ -1305,7 +1305,7 @@ SUITE(istream_tests)
test_string.append(" 6E+4.5"); // two numbers merged in exponent
test_string.append(" 6E-4.5"); // two numbers merged in exponent
test_string.append(" 3.14 -10 +42.0 -1234.567 .01 +0 -0");
-#ifndef __APPLE__
+#if FLT_EVAL_METHOD > 1
test_string.append(" 12345678901234567890123456789012345678901234567890"); // a big number
#endif
test_string.append(" 9.81E05 6.0221413e+23 1.6e-14"); // numbers with exponent