Index: compiler-rt/trunk/test/lit.common.cfg =================================================================== --- compiler-rt/trunk/test/lit.common.cfg +++ compiler-rt/trunk/test/lit.common.cfg @@ -355,7 +355,7 @@ if config.host_os == 'Darwin': config.substitutions.append( ("%ld_flags_rpath_exe" + postfix, '-Wl,-rpath,@executable_path/ %dynamiclib' + postfix) ) config.substitutions.append( ("%ld_flags_rpath_so" + postfix, '-install_name @rpath/`basename %dynamiclib{}`'.format(postfix)) ) - elif config.host_os == 'FreeBSD' or config.host_os == 'NetBSD': + elif config.host_os in ('FreeBSD', 'NetBSD', 'OpenBSD'): config.substitutions.append( ("%ld_flags_rpath_exe" + postfix, "-Wl,-z,origin -Wl,-rpath,\$ORIGIN -L%T -l%xdynamiclib_namespec" + postfix) ) config.substitutions.append( ("%ld_flags_rpath_so" + postfix, '') ) elif config.host_os == 'Linux': Index: compiler-rt/trunk/test/ubsan/TestCases/Integer/suppressions.cpp =================================================================== --- compiler-rt/trunk/test/ubsan/TestCases/Integer/suppressions.cpp +++ compiler-rt/trunk/test/ubsan/TestCases/Integer/suppressions.cpp @@ -4,6 +4,8 @@ // requires the compiler-rt runtime to be able to symbolize stack addresses. // REQUIRES: can-symbolize // UNSUPPORTED: android +// Output differs on OpenBSD longer by displaying the values. +// XFAIL: openbsd // Fails without any suppression. // RUN: %env_ubsan_opts=halt_on_error=1 not %run %t 2>&1 | FileCheck %s Index: compiler-rt/trunk/test/ubsan/TestCases/Misc/coverage-levels.cc =================================================================== --- compiler-rt/trunk/test/ubsan/TestCases/Misc/coverage-levels.cc +++ compiler-rt/trunk/test/ubsan/TestCases/Misc/coverage-levels.cc @@ -23,6 +23,8 @@ // Coverage is not yet implemented in TSan. // XFAIL: ubsan-tsan // UNSUPPORTED: ubsan-standalone-static +// No coverage support +// UNSUPPORTED: openbsd volatile int sink; int main(int argc, char **argv) { Index: compiler-rt/trunk/test/ubsan/TestCases/Misc/missing_return.cpp =================================================================== --- compiler-rt/trunk/test/ubsan/TestCases/Misc/missing_return.cpp +++ compiler-rt/trunk/test/ubsan/TestCases/Misc/missing_return.cpp @@ -1,6 +1,8 @@ // RUN: %clangxx -fsanitize=return %gmlt %s -O3 -o %t // RUN: not %run %t 2>&1 | FileCheck %s // RUN: %env_ubsan_opts=print_stacktrace=1 not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-STACKTRACE +// Error message does not exact what expected +// XFAIL: openbsd // CHECK: missing_return.cpp:[[@LINE+1]]:5: runtime error: execution reached the end of a value-returning function without returning a value int f() { Index: compiler-rt/trunk/test/ubsan/TestCases/Misc/monitor.cpp =================================================================== --- compiler-rt/trunk/test/ubsan/TestCases/Misc/monitor.cpp +++ compiler-rt/trunk/test/ubsan/TestCases/Misc/monitor.cpp @@ -5,6 +5,8 @@ // on Windows. // // UNSUPPORTED: win32 +// Linkage issue +// XFAIL: openbsd #include Index: compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/Function/function.cpp =================================================================== --- compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/Function/function.cpp +++ compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/Function/function.cpp @@ -3,6 +3,8 @@ // Verify that we can disable symbolization if needed: // RUN: %env_ubsan_opts=symbolize=0 %run %t 2>&1 | FileCheck %s --check-prefix=NOSYM // XFAIL: win32,win64 +// Unsupported function flag +// UNSUPPORTED: openbsd #include Index: compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/misaligned.cpp =================================================================== --- compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/misaligned.cpp +++ compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/misaligned.cpp @@ -11,6 +11,8 @@ // RUN: %clangxx -fsanitize=alignment -fno-sanitize-recover=alignment %s -O3 -o %t // RUN: not %run %t w1 2>&1 | FileCheck %s --check-prefix=CHECK-WILD +// Compilation error make the test fails. +// XFAIL: openbsd #include Index: compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/vptr.cpp =================================================================== --- compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/vptr.cpp +++ compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/vptr.cpp @@ -40,6 +40,8 @@ // UNSUPPORTED: win32 // Suppressions file not pushed to the device. // UNSUPPORTED: android +// Compilation error +// UNSUPPORTED: openbsd #include #include #include Index: compiler-rt/trunk/test/ubsan/lit.common.cfg =================================================================== --- compiler-rt/trunk/test/ubsan/lit.common.cfg +++ compiler-rt/trunk/test/ubsan/lit.common.cfg @@ -68,7 +68,7 @@ config.suffixes = ['.c', '.cc', '.cpp'] # Check that the host supports UndefinedBehaviorSanitizer tests -if config.host_os not in ['Linux', 'Darwin', 'FreeBSD', 'Windows', 'NetBSD', 'SunOS']: +if config.host_os not in ['Linux', 'Darwin', 'FreeBSD', 'Windows', 'NetBSD', 'SunOS', 'OpenBSD']: config.unsupported = True config.available_features.add('arch=' + config.target_arch) Index: compiler-rt/trunk/test/xray/lit.cfg =================================================================== --- compiler-rt/trunk/test/xray/lit.cfg +++ compiler-rt/trunk/test/xray/lit.cfg @@ -45,7 +45,7 @@ # Default test suffixes. config.suffixes = ['.c', '.cc', '.cpp'] -if config.host_os not in ['FreeBSD', 'Linux', 'NetBSD']: +if config.host_os not in ['FreeBSD', 'Linux', 'NetBSD', 'OpenBSD']: config.unsupported = True elif '64' not in config.host_arch: if 'arm' in config.host_arch: