File: 0004-fix-itkOptImageToImageMetricsTest04.patch

package info (click to toggle)
insighttoolkit5 5.4.3-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 704,384 kB
  • sloc: cpp: 783,592; ansic: 628,724; xml: 44,704; fortran: 34,250; python: 22,874; sh: 4,078; pascal: 2,636; lisp: 2,158; makefile: 464; yacc: 328; asm: 205; perl: 203; lex: 146; tcl: 132; javascript: 98; csh: 81
file content (25 lines) | stat: -rw-r--r-- 1,073 bytes parent folder | download | duplicates (2)
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
From: Niels Dekker <N.Dekker@lumc.nl>
Subject: Make itkOptImageToImageMetricsTest04 not to fail on single-CPU systems
Bug-Debian: https://bugs.debian.org/1105896
Origin: https://github.com/InsightSoftwareConsortium/ITK/commit/57b138cf150e097340b75e7f37eee061da80c627
Last-Update: 2025-05-16

--- a/Modules/Nonunit/Review/test/itkOptImageToImageMetricsTest2.h
+++ b/Modules/Nonunit/Review/test/itkOptImageToImageMetricsTest2.h
@@ -81,16 +81,6 @@
     // so we seed the random number generator
     // immediately before this call.
     metric->Initialize();
-
-    // Verify that Initialize has properly called
-    // MultiThreadingInitialize() and a series of CreateAnother();
-
-    using TransformPointer = typename MetricType::TransformPointer;
-    const TransformPointer * transformPtr = metric->GetThreaderTransform();
-    if ((transformPtr == static_cast<const TransformPointer *>(nullptr)) || (transformPtr[0].IsNull()))
-    {
-      exit(EXIT_FAILURE);
-    }
   }
   // Other registration functionality tested in
   // OptImageToImageTest.cxx... skip the rest