changeset 796:08e098c42553

fix version
author Alain Mazy <am@orthanc.team>
date Tue, 18 Mar 2025 08:54:44 +0100
parents 7002190323f8
children 2f29c946231a
files Tests/Tests.py
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Mon Mar 17 17:08:15 2025 +0100
+++ b/Tests/Tests.py	Tue Mar 18 08:54:44 2025 +0100
@@ -6702,7 +6702,6 @@
         SYNTAXES = [
             '1.2.840.10008.1.2',        
             '1.2.840.10008.1.2.1',
-            '1.2.840.10008.1.2.1.99',  # Deflated Explicit VR Little Endian (cannot be decoded in debug mode if Orthanc is statically linked against DCMTK 3.6.5)
             '1.2.840.10008.1.2.2',
             '1.2.840.10008.1.2.4.50',
             '1.2.840.10008.1.2.4.51',
@@ -6710,6 +6709,10 @@
             '1.2.840.10008.1.2.4.70',
         ]
 
+        if IsOrthancVersionAbove(_REMOTE, 1, 12, 7):
+            SYNTAXES.push('1.2.840.10008.1.2.1.99')  # Deflated Explicit VR Little Endian (cannot be decoded in debug mode if Orthanc is statically linked against DCMTK 3.6.5)
+
+
         if HasGdcmPlugin(_REMOTE):
             SYNTAXES = SYNTAXES + [
                 '1.2.840.10008.1.2.4.80',  # This makes DCMTK 3.6.2 crash
@@ -7377,7 +7380,6 @@
         SYNTAXES = [
             '1.2.840.10008.1.2',        
             '1.2.840.10008.1.2.1',
-            '1.2.840.10008.1.2.1.99',  # Deflated Explicit VR Little Endian (cannot be decoded in debug mode if Orthanc is statically linked against DCMTK 3.6.5)
             '1.2.840.10008.1.2.2',
             '1.2.840.10008.1.2.4.50',
             '1.2.840.10008.1.2.4.51',
@@ -7385,6 +7387,11 @@
             '1.2.840.10008.1.2.4.70',
         ]
 
+        if IsOrthancVersionAbove(_REMOTE, 1, 12, 7):
+            SYNTAXES.push('1.2.840.10008.1.2.1.99')  # Deflated Explicit VR Little Endian (cannot be decoded in debug mode if Orthanc is statically linked against DCMTK 3.6.5)
+
+
+
         if HasGdcmPlugin(_REMOTE):
             SYNTAXES = SYNTAXES + [
                 '1.2.840.10008.1.2.4.80',  # This makes DCMTK 3.6.2 crash