X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6a80bada06a308a8cd1e10dfc1e9b9c3514c45e5..7550a5357fdf5d3b9e41a07c5e05487b80df0ff0:/teshsuite/mc/random-bug/random-bug.cpp diff --git a/teshsuite/mc/random-bug/random-bug.cpp b/teshsuite/mc/random-bug/random-bug.cpp index ba82292333..80b910eed4 100644 --- a/teshsuite/mc/random-bug/random-bug.cpp +++ b/teshsuite/mc/random-bug/random-bug.cpp @@ -3,8 +3,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ +#include #include -#include #include #include #include @@ -32,7 +32,7 @@ static void app() abort(); } else if (behavior == Behavior::SEGV) { if (x == 3 && y == 4) - kill(getpid(), SIGSEGV); // Simulate a segfault without displeasing the static analyzers + raise(SIGSEGV); // Simulate a segfault without displeasing the static analyzers } else { DIE_IMPOSSIBLE; }