[PATCH] D44069: Test Driver sanitise, unsupported on OpenBSD

Vedant Kumar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 6 15:42:34 PST 2018


vsk requested changes to this revision.
vsk added inline comments.
This revision now requires changes to proceed.


================
Comment at: test/Driver/fsanitize.c:392
+// RUN %clang -target i386-pc-openbsd -fsanitize=undefined %s -### 2>&1 | FileCheck --check-prefix=CHECK_UBSAN-OPENBSD
+// CHECK-UBSAN-OPENBSD: -fsanitize=undefined
+
----------------
Why does this work? The -check-prefix is "CHECK_UBSAN-OPENBSD", but there's no underscore here.


================
Comment at: test/Driver/unknown-arg.c:60
 // IGNORED: warning: unknown warning option '-Wunknown-to-clang-option'
+// XFAIL: openbsd
----------------
This test should not be expected to fail on openbsd. Whatever it is that you're checking for, please create a narrower test just for openbsd, and add your checks there.


https://reviews.llvm.org/D44069





More information about the cfe-commits mailing list