test: add sigsegv after MPI_Finalize test

The current srun version used in MN4 returns 0 if the program crashes
after MPI_Finalize, as shown by this test.
This commit is contained in:
2021-04-06 13:02:45 +02:00
parent 07253c3fa0
commit 604cfd90a3
3 changed files with 58 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
{
stdenv
, mpi
}:
stdenv.mkDerivation {
name = "sigsegv";
src = ./.;
buildInputs = [ mpi ];
buildPhase = ''
mpicc sigsegv.c -o sigsegv
'';
installPhase = ''
cp sigsegv $out
'';
}