From f7af1a628514d4f0ab061db449a30b3079f59834 Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Tue, 12 Mar 2019 19:03:54 +0100 Subject: compilers: -fsanitize is not supported on OpenBSD OpenBSD doesn't have any support for the compiler sanitizers yet. While this may change in the future, better fix test suite run in "failfast" mode for now. This can be revisited once (if) we get support in the future. * clang 7.0.1 $ make CFLAGS=-fsanitize=address foo cc -fsanitize=address -o foo foo.c cc: error: unsupported option '-fsanitize=address' for target 'amd64-unknown-openbsd6.5' * gcc 4.2.1 *** Error 1 in /tmp (:85 'foo') $ make CC=gcc CFLAGS=-fsanitize=address foo gcc -fsanitize=address -o foo foo.c cc1: error: unrecognized command line option "-fsanitize=address" * gcc 8.2.0 $ make CC=egcc CFLAGS=-fsanitize=address foo egcc -fsanitize=address -o foo foo.c ld: error: unable to find library -lasan collect2: error: ld returned 1 exit status --- run_unittests.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'run_unittests.py') diff --git a/run_unittests.py b/run_unittests.py index e231a25..e19b94b 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -4230,6 +4230,8 @@ class LinuxlikeTests(BasePlatformTests): def test_generate_gir_with_address_sanitizer(self): if is_cygwin(): raise unittest.SkipTest('asan not available on Cygwin') + if is_openbsd(): + raise unittest.SkipTest('-fsanitize=address is not supported on OpenBSD') testdir = os.path.join(self.framework_test_dir, '7 gnome') self.init(testdir, ['-Db_sanitize=address', '-Db_lundef=false']) -- cgit v1.1