From fa35a254ea5a8130fb729d1a76d82c3f5445157b Mon Sep 17 00:00:00 2001
From: "Oraji, Yussur Mustafa" <yussur.oraji@tu-darmstadt.de>
Date: Fri, 11 Apr 2025 08:59:30 +0200
Subject: [PATCH] Allow MPI_PROC_NULL for RMA tests

---
 scripts/errors/rma/InvalidRank.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/scripts/errors/rma/InvalidRank.py b/scripts/errors/rma/InvalidRank.py
index 70433270..9ef3dbaa 100644
--- a/scripts/errors/rma/InvalidRank.py
+++ b/scripts/errors/rma/InvalidRank.py
@@ -10,7 +10,8 @@ from Infrastructure.TemplateFactory import get_invalid_param_rma_case
 
 
 class InvalidRankErrorRMA(ErrorGenerator):
-    invalid_ranks = ["-1", "nprocs", "MPI_PROC_NULL"]
+    invalid_ranks = ["-1", "nprocs"]
+    correct_ranks = ["MPI_PROC_NULL"]
 
     def __init__(self):
         pass
@@ -32,4 +33,9 @@ class InvalidRankErrorRMA(ErrorGenerator):
                 tm.get_instruction("RMAOP").set_has_error()
                 tm.set_description("InvalidParam-Rank",
                                 "Invalid Rank: %s" % rank_to_use)
-                yield tm
\ No newline at end of file
+                yield tm
+            for rank_to_use in self.correct_ranks:
+                tm = get_invalid_param_rma_case("target_rank", func, rank_to_use)
+                tm.set_description("Correct-Rank",
+                                f"Use of special rank {rank_to_use} in valid communication call")
+                yield tm
-- 
GitLab