From 873a6c237521600fce28b37264694ba25f71bb9d Mon Sep 17 00:00:00 2001 From: N00byKing <N00byKing@hotmail.de> Date: Thu, 10 Apr 2025 10:06:41 +0200 Subject: [PATCH 1/2] Allow MPI_PROC_NULL for RMA tests --- scripts/errors/rma/InvalidRank.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/errors/rma/InvalidRank.py b/scripts/errors/rma/InvalidRank.py index 70433270..321e8974 100644 --- a/scripts/errors/rma/InvalidRank.py +++ b/scripts/errors/rma/InvalidRank.py @@ -10,7 +10,7 @@ from Infrastructure.TemplateFactory import get_invalid_param_rma_case class InvalidRankErrorRMA(ErrorGenerator): - invalid_ranks = ["-1", "nprocs", "MPI_PROC_NULL"] + invalid_ranks = ["-1", "nprocs"] def __init__(self): pass -- GitLab From ceb981a1fa8de6c90e8fb51b3b2df041e28d29f2 Mon Sep 17 00:00:00 2001 From: N00byKing <N00byKing@hotmail.de> Date: Thu, 10 Apr 2025 10:47:36 +0200 Subject: [PATCH 2/2] Add correct test case for MPI_PROC_NULL --- scripts/errors/rma/InvalidRank.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/errors/rma/InvalidRank.py b/scripts/errors/rma/InvalidRank.py index 321e8974..9ef3dbaa 100644 --- a/scripts/errors/rma/InvalidRank.py +++ b/scripts/errors/rma/InvalidRank.py @@ -11,6 +11,7 @@ from Infrastructure.TemplateFactory import get_invalid_param_rma_case class InvalidRankErrorRMA(ErrorGenerator): 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