Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Template implem of cond_timedwait in sthread
[simgrid.git] / teshsuite / smpi / MBI / P2PProbeGenerator.py
index 4504493191a1f85591d0daff9e764e5f5d747d27..917859c1b1154360904ff3f0992a7dc4a270f482 100755 (executable)
@@ -130,7 +130,7 @@ for p in gen.probe:
             patterns['operation2c'] = gen.operation[s]("4")
 
             # Generate the incorrect matching
-            replace = patterns
+            replace = patterns.copy()
             replace['shortdesc'] = 'MPI_Probe is called before MPI_Recv.'
             replace['longdesc'] = 'MPI_Probe is a blocking call that returns only after a matching message has been found. By calling MPI_Probe before MPI_Recv, a deadlock is created.'
             replace['outcome'] = 'ERROR: CallMatching'
@@ -138,7 +138,7 @@ for p in gen.probe:
             gen.make_file(template, f'CallOrdering_{p}_{r}_{s}_nok.c', replace)
 
             # Generate a correct matching
-            replace = patterns
+            replace = patterns.copy()
             replace['shortdesc'] = 'Correct use of MPI_Probe.'
             replace['longdesc'] = 'Correct use of MPI_Probe.'
             replace['outcome'] = 'OK'