mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 01:27:11 +03:00
test-sigbus: skip the test under valgrind
This commit is contained in:
parent
aab7037de4
commit
af02b15a9d
@ -22,6 +22,9 @@
|
|||||||
#include "fd-util.h"
|
#include "fd-util.h"
|
||||||
#include "sigbus.h"
|
#include "sigbus.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
#ifdef HAVE_VALGRIND_VALGRIND_H
|
||||||
|
#include <valgrind/valgrind.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
_cleanup_close_ int fd = -1;
|
_cleanup_close_ int fd = -1;
|
||||||
@ -29,6 +32,11 @@ int main(int argc, char *argv[]) {
|
|||||||
void *addr = NULL;
|
void *addr = NULL;
|
||||||
uint8_t *p;
|
uint8_t *p;
|
||||||
|
|
||||||
|
#ifdef HAVE_VALGRIND_VALGRIND_H
|
||||||
|
if (RUNNING_ON_VALGRIND)
|
||||||
|
return EXIT_TEST_SKIP;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __SANITIZE_ADDRESS__
|
#ifdef __SANITIZE_ADDRESS__
|
||||||
return EXIT_TEST_SKIP;
|
return EXIT_TEST_SKIP;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user