From: Martin Quinson Date: Sun, 22 Oct 2023 22:31:18 +0000 (+0200) Subject: MBI: Adapt to the new InputHazard bugs, and fix them X-Git-Tag: v3.35~89^2~69 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/560e51101c702534f76ad73e9126381a606b2366 MBI: Adapt to the new InputHazard bugs, and fix them --- diff --git a/teshsuite/smpi/MBI/InputHazardGenerator.py b/teshsuite/smpi/MBI/InputHazardGenerator.py index 899e810f96..d9f8a5141c 100755 --- a/teshsuite/smpi/MBI/InputHazardGenerator.py +++ b/teshsuite/smpi/MBI/InputHazardGenerator.py @@ -26,11 +26,11 @@ END_MPI_FEATURES BEGIN_MBI_TESTS $ mpirun -np 2 ${EXE} 1 - | @{outcome}@ - | @{errormsg}@ + | @{outcome1}@ + | @{errormsg1}@ $ mpirun -np 2 ${EXE} 2 - | @{outcome}@ - | @{errormsg}@ + | @{outcome2}@ + | @{errormsg2}@ END_MBI_TESTS ////////////////////// End of MBI headers /////////////////// */ @@ -127,16 +127,20 @@ for s in gen.send + gen.isend: replace = patterns.copy() replace['shortdesc'] = 'Correct call ordering.' replace['longdesc'] = 'Correct call ordering.' - replace['outcome'] = 'OK' - replace['errormsg'] = 'OK' + replace['outcome1'] = 'OK' + replace['errormsg1'] = 'OK' + replace['outcome2'] = 'OK' + replace['errormsg2'] = 'OK' gen.make_file(template, f'InputHazardCallOrdering_{r}_{s}_ok.c', replace) # Generate the incorrect matching replace = patterns.copy() replace['shortdesc'] = 'Missing Send function.' replace['longdesc'] = 'Missing Send function call for a path depending to input, a deadlock is created.' - replace['outcome'] = 'ERROR: IHCallMatching' - replace['errormsg'] = 'P2P mistmatch. Missing @{r}@ at @{filename}@:@{line:MBIERROR}@.' + replace['outcome1'] = 'OK' + replace['errormsg1'] = 'OK' + replace['outcome2'] = 'ERROR: IHCallMatching' + replace['errormsg2'] = 'P2P mistmatch. Missing @{r}@ at @{filename}@:@{line:MBIERROR}@.' replace['errorcond'] = '/* MBIERROR */' replace['operation1b'] = '' replace['fini1b'] = '' @@ -172,16 +176,20 @@ for c in gen.coll: replace = patterns.copy() replace['shortdesc'] = 'Correct call ordering.' replace['longdesc'] = 'Correct call ordering.' - replace['outcome'] = 'OK' - replace['errormsg'] = 'OK' + replace['outcome1'] = 'OK' + replace['errormsg1'] = 'OK' + replace['outcome2'] = 'OK' + replace['errormsg2'] = 'OK' gen.make_file(template, f'InputHazardCallOrdering_{c}_ok.c', replace) # Generate the incorrect matching replace = patterns.copy() replace['shortdesc'] = 'Missing collective function call.' replace['longdesc'] = 'Missing collective function call for a path depending to input, a deadlock is created.' - replace['outcome'] = 'ERROR: IHCallMatching' - replace['errormsg'] = 'P2P mistmatch. Missing @{c}@ at @{filename}@:@{line:MBIERROR}@.' + replace['outcome1'] = 'OK' + replace['errormsg1'] = 'OK' + replace['outcome2'] = 'ERROR: IHCallMatching' + replace['errormsg2'] = 'P2P mistmatch. Missing @{c}@ at @{filename}@:@{line:MBIERROR}@.' replace['errorcond'] = '/* MBIERROR */' replace['operation1b'] = '' replace['fini1b'] = '' diff --git a/teshsuite/smpi/MBI/MBIutils.py b/teshsuite/smpi/MBI/MBIutils.py index c422cca055..9a7d837293 100644 --- a/teshsuite/smpi/MBI/MBIutils.py +++ b/teshsuite/smpi/MBI/MBIutils.py @@ -67,6 +67,9 @@ possible_details = { 'GlobalConcurrency':'DGlobalConcurrency', # larger scope 'BufferingHazard':'EBufferingHazard', + # Input Hazard + 'IHCallMatching':'InputHazard', + 'OK':'FOK'} error_scope = {