Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
I hate tests in shell.
authorAugustin Degomme <degomme@idpann.imag.fr>
Thu, 30 Jan 2014 17:06:49 +0000 (18:06 +0100)
committerAugustin Degomme <degomme@idpann.imag.fr>
Thu, 30 Jan 2014 17:06:49 +0000 (18:06 +0100)
src/smpi/smpirun.in

index 734a837..74d0471 100755 (executable)
@@ -420,7 +420,7 @@ fi
 ${EXEC} ${TRACEOPTIONS} ${SIMOPTS} ${PLATFORMTMP} ${APPLICATIONTMP}
 status=$?
 
-if [[ $status -eq 139 ]]; then echo "ERROR: A segmentation fault was triggered. 
+if [ ${status} = 139 ]; then echo "ERROR: A segmentation fault was triggered. 
 A common cause in SimGrid may be the use of a too small stack size for the simulated processes (default 128KiB).
 Please see contexts/stack_size parameter , or http://simgrid.org/simgrid/latest/doc/options.html#options_virt_stacksize "; fi