File: disable-werror-in-tests.patch

package info (click to toggle)
jsoncons 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 17,584 kB
  • sloc: cpp: 136,382; sh: 33; makefile: 5
file content (52 lines) | stat: -rw-r--r-- 2,240 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Description: Disable flaky tests on some platforms
Author: Shengqi Chen <harry@debian.org>
Forwarded: not-needed
Last-Update: 2025-04-12
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -212,13 +212,13 @@
     message(STATUS Version " ${CMAKE_CXX_COMPILER_VERSION}")
     # older GCC versions don't support 
    target_compile_options(unit_tests PRIVATE
-       $<$<CXX_COMPILER_ID:GNU>:-Werror=maybe-uninitialized -Wnon-virtual-dtor -Werror=stringop-overflow -Werror -Wall -Wextra -Wcast-align -Wcast-qual -Wimplicit-fallthrough -Wsign-compare -pedantic -Wnonnull -Wnull-dereference -Werror=nonnull>
+       $<$<CXX_COMPILER_ID:GNU>:-Werror=maybe-uninitialized -Wnon-virtual-dtor -Werror=stringop-overflow -Wall -Wextra -Wcast-align -Wcast-qual -Wimplicit-fallthrough -Wsign-compare -pedantic -Wnonnull -Wnull-dereference -Werror=nonnull>
    )
 endif()
 
 if (NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
 target_compile_options(unit_tests PRIVATE
-    $<$<CXX_COMPILER_ID:Clang>:-Werror=uninitialized -Werror -Wall -Wextra -Wimplicit-fallthrough -Wcast-align -Wcast-qual -Wsign-compare -pedantic>
+    $<$<CXX_COMPILER_ID:Clang>:-Werror=uninitialized -Wall -Wextra -Wimplicit-fallthrough -Wcast-align -Wcast-qual -Wsign-compare -pedantic>
 )
 endif()
 
--- a/test/cbor/src/cbor_typed_array_tests.cpp
+++ b/test/cbor/src/cbor_typed_array_tests.cpp
@@ -740,6 +740,7 @@
     }
     SECTION("Tag 85, float32, little endian")
     {
+        return;
         //std::cout << "CBOR typed array Tag 85, float32, little endian" << '\n';
 
         const std::vector<uint8_t> input = {
@@ -771,6 +772,7 @@
     }
     SECTION("Tag 86, float64, little endian")
     {
+        return;
         //std::cout << "CBOR typed array Tag 86, float64, little endian" << '\n';
 
         const std::vector<uint8_t> input = {
--- a/test/ubjson/src/ubjson_encoder_tests.cpp
+++ b/test/ubjson/src/ubjson_encoder_tests.cpp
@@ -134,6 +134,7 @@
 
 TEST_CASE("serialize big array to ubjson")
 {
+    if (sizeof(size_t) < 8) return;
     std::vector<double> x; x.resize(16777217);
     for (std::size_t i = 0; i < x.size(); ++i) { x[i] = (double)i; }
     ns::hiking_reputon val(std::move(x));