From 033d432202c3da4ab4b5b06f00638aae76091fe5 Mon Sep 17 00:00:00 2001
From: Tim Jammer <tim.jammer@tu-darmstadt.de>
Date: Tue, 30 Apr 2024 13:42:56 +0200
Subject: [PATCH] more coverage for correct testcases

---
 scripts/errors/coll/ParamMatchingType.py | 4 ++--
 scripts/errors/dtypes/DtypeMissmatch.py  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/scripts/errors/coll/ParamMatchingType.py b/scripts/errors/coll/ParamMatchingType.py
index bb88e4b8d..e03e18167 100644
--- a/scripts/errors/coll/ParamMatchingType.py
+++ b/scripts/errors/coll/ParamMatchingType.py
@@ -234,6 +234,6 @@ class InvalidComErrorColl(ErrorGenerator):
                                        get_bytes_size_for_type(type_1),
                                        func_to_use, comm)
 
-            if type_1 not in correct_types_checked:
-                correct_types_checked.add(type_1)
+            if (type_1, comm) not in correct_types_checked:
+                correct_types_checked.add((type_1, comm))
                 yield get_correct_case(type_1, 1, func_to_use, comm)
diff --git a/scripts/errors/dtypes/DtypeMissmatch.py b/scripts/errors/dtypes/DtypeMissmatch.py
index 2bd13efe1..6094f9a44 100644
--- a/scripts/errors/dtypes/DtypeMissmatch.py
+++ b/scripts/errors/dtypes/DtypeMissmatch.py
@@ -207,8 +207,8 @@ class DtypeMissmatch(ErrorGenerator):
             yield get_global_missmatch(type_1, type_2, get_bytes_size_for_type(type_2),
                                        get_bytes_size_for_type(type_1), send_func, recv_func, comm)
 
-            if type_1 not in correct_types_checked:
-                correct_types_checked.add(type_1)
+            if (type_1, comm) not in correct_types_checked:
+                correct_types_checked.add((type_1, comm))
                 yield get_correct_case(type_1, 1, send_func, recv_func, comm)
 
         # TODO mrecv?
-- 
GitLab