File: disable-test-on-32-bit.patch

package info (click to toggle)
libbioparser-dev 3.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,932 kB
  • sloc: cpp: 1,275; makefile: 13
file content (21 lines) | stat: -rw-r--r-- 573 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
Description: disable a test on 32 bit arch
Author: Nilesh Patra <nilesh@debian.org>
Last-Update: 2025-05-04
--- a/test/mhap_parser_test.cpp
+++ b/test/mhap_parser_test.cpp
@@ -50,6 +50,7 @@
 
   void Check() {
     EXPECT_EQ(150, o.size());
+#if UINTPTR_MAX == UINT64_MAX
     EXPECT_EQ(7816660, std::accumulate(o.begin(), o.end(), 0,
         [] (std::uint32_t s, const std::unique_ptr<MhapOverlap>& it) {
           return s +
@@ -59,6 +60,7 @@
               it->strand +
               it->error;
         }));
+#endif
   }
 
   std::unique_ptr<Parser<MhapOverlap>> p;