test-sigbus: skip the test under valgrind

This commit is contained in:
Evgeny Vereshchagin 2017-05-10 08:54:52 +00:00
parent aab7037de4
commit af02b15a9d

View file

@ -22,6 +22,9 @@
#include "fd-util.h"
#include "sigbus.h"
#include "util.h"
#ifdef HAVE_VALGRIND_VALGRIND_H
#include <valgrind/valgrind.h>
#endif
int main(int argc, char *argv[]) {
_cleanup_close_ int fd = -1;
@ -29,6 +32,11 @@ int main(int argc, char *argv[]) {
void *addr = NULL;
uint8_t *p;
#ifdef HAVE_VALGRIND_VALGRIND_H
if (RUNNING_ON_VALGRIND)
return EXIT_TEST_SKIP;
#endif
#ifdef __SANITIZE_ADDRESS__
return EXIT_TEST_SKIP;
#endif