diff --git a/compiler/test/compilable/stdcheaders.c b/compiler/test/compilable/stdcheaders.c index 03690ea320..c460a00384 100644 --- a/compiler/test/compilable/stdcheaders.c +++ b/compiler/test/compilable/stdcheaders.c @@ -59,19 +59,23 @@ float x = NAN; #ifndef _MSC_VER // C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\tgmath.h(33): Error: no type for declarator before `)` #ifndef __APPLE__ // /Applications/Xcode-14.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/tgmath.h(39): Error: named parameter required before `...` +#ifndef __OpenBSD__ // /usr/lib/clang/13.0.0/include/tgmath.h(34): Error: named parameter required before `...` #if !(defined(__linux__) && defined(__aarch64__)) // /tmp/clang/lib/clang/15.0.3/include/tgmath.h(34): Error: named parameter required before `...` #include #endif #endif #endif +#endif #ifndef __linux__ #ifndef __APPLE__ +#ifndef __OpenBSD__ #ifndef _MSC_VER #include #endif #endif #endif +#endif #include diff --git a/compiler/test/compilable/test21672.d b/compiler/test/compilable/test21672.d index c69f57d1c0..abad340fcc 100644 --- a/compiler/test/compilable/test21672.d +++ b/compiler/test/compilable/test21672.d @@ -1,5 +1,5 @@ // REQUIRED_ARGS: -mcpu=avx2 -O -// DISABLED: win32 linux32 freebsd32 +// DISABLED: win32 linux32 freebsd32 openbsd32 // https://issues.dlang.org/show_bug.cgi?id=21672 diff --git a/compiler/test/compilable/test22346.c b/compiler/test/compilable/test22346.c index e24e713fa9..9d1444ad74 100644 --- a/compiler/test/compilable/test22346.c +++ b/compiler/test/compilable/test22346.c @@ -1,4 +1,4 @@ -/* DISABLED: win32 win64 linux32 osx32 osx64 freebsd32 +/* DISABLED: win32 win64 linux32 osx32 osx64 freebsd32 openbsd32 */ // https://issues.dlang.org/show_bug.cgi?id=23346 diff --git a/compiler/test/fail_compilation/fail17105.d b/compiler/test/fail_compilation/fail17105.d index eeb37c9640..407c40222c 100644 --- a/compiler/test/fail_compilation/fail17105.d +++ b/compiler/test/fail_compilation/fail17105.d @@ -1,5 +1,5 @@ /* REQUIRED_ARGS: -m64 -DISABLED: win32 linux32 osx32 freebsd32 +DISABLED: win32 linux32 osx32 freebsd32 openbsd32 TEST_OUTPUT: --- fail_compilation/fail17105.d(20): Error: missing 4th parameter to `__simd()` diff --git a/compiler/test/fail_compilation/fail18372.d b/compiler/test/fail_compilation/fail18372.d index d1612d2bfa..6100894bb0 100644 --- a/compiler/test/fail_compilation/fail18372.d +++ b/compiler/test/fail_compilation/fail18372.d @@ -1,5 +1,5 @@ /* -DISABLED: win32 win64 linux32 osx32 freebsd32 +DISABLED: win32 win64 linux32 osx32 freebsd32 openbsd32 TEST_OUTPUT: --- fail_compilation/fail18372.d(103): Error: `__va_list_tag` is not defined, perhaps `import core.stdc.stdarg;` ? diff --git a/compiler/test/fail_compilation/fail6451.d b/compiler/test/fail_compilation/fail6451.d index 10a7fbdfa6..fcc1d76a70 100644 --- a/compiler/test/fail_compilation/fail6451.d +++ b/compiler/test/fail_compilation/fail6451.d @@ -1,5 +1,5 @@ /* -DISABLED: win32 win64 linux32 osx32 freebsd32 +DISABLED: win32 win64 linux32 osx32 freebsd32 openbsd32 TEST_OUTPUT: --- fail_compilation/fail6451.d(9): Error: `__va_list_tag` is not defined, perhaps `import core.stdc.stdarg;` ? diff --git a/compiler/test/fail_compilation/ice20042.d b/compiler/test/fail_compilation/ice20042.d index 6b71903c9c..7a674b3c54 100644 --- a/compiler/test/fail_compilation/ice20042.d +++ b/compiler/test/fail_compilation/ice20042.d @@ -1,5 +1,5 @@ /* -DISABLED: freebsd32 linux32 osx32 win32 +DISABLED: freebsd32 openbsd32 linux32 osx32 win32 TEST_OUTPUT: --- fail_compilation/ice20042.d(18): Error: slice operation `cast(__vector(float[4]))[nanF, nanF, nanF, nanF] = [1.0F, 2.0F, 3.0F, 4.0F][0..4]` cannot be evaluated at compile time diff --git a/compiler/test/fail_compilation/ice20264.d b/compiler/test/fail_compilation/ice20264.d index df6667d9e4..a8a1e7119b 100644 --- a/compiler/test/fail_compilation/ice20264.d +++ b/compiler/test/fail_compilation/ice20264.d @@ -1,5 +1,5 @@ /* -DISABLED: freebsd32 linux32 osx32 win32 +DISABLED: freebsd32 openbsd32 linux32 osx32 win32 TEST_OUTPUT: --- fail_compilation/ice20264.d(12): Error: cannot modify expression `cast(__vector(float[4]))a` because it is not an lvalue diff --git a/compiler/test/fail_compilation/impconv.d b/compiler/test/fail_compilation/impconv.d index cb1cb8e21e..0cc2deb13d 100644 --- a/compiler/test/fail_compilation/impconv.d +++ b/compiler/test/fail_compilation/impconv.d @@ -3,7 +3,7 @@ FIXME: DMD host compilers < 2.073 with faulty optimization lead to unfortunate test failures, see https://github.com/dlang/dmd/pull/6831#issuecomment-304495842. -DISABLED: win32 win64 linux osx freebsd +DISABLED: win32 win64 linux osx freebsd openbsd */ /* diff --git a/compiler/test/fail_compilation/vector_types.d b/compiler/test/fail_compilation/vector_types.d index 72c36f4f64..322bbc66cb 100644 --- a/compiler/test/fail_compilation/vector_types.d +++ b/compiler/test/fail_compilation/vector_types.d @@ -1,7 +1,7 @@ /* REQUIRED_ARGS: -o- TEST_OUTPUT: -DISABLED: freebsd32 linux32 osx32 win32 +DISABLED: freebsd32 openbsd32 linux32 osx32 win32 --- fail_compilation/vector_types.d(15): Error: 32 byte vector type `__vector(double[4])` is not supported on this platform fail_compilation/vector_types.d(16): Error: 32 byte vector type `__vector(float[8])` is not supported on this platform diff --git a/compiler/test/fail_compilation/xmmslice.d b/compiler/test/fail_compilation/xmmslice.d index 6cf0e238f2..f91ac1f525 100644 --- a/compiler/test/fail_compilation/xmmslice.d +++ b/compiler/test/fail_compilation/xmmslice.d @@ -1,6 +1,6 @@ /* REQUIRED_ARGS: -mcpu=avx -DISABLED: win32 freebsd32 linux32 osx32 +DISABLED: win32 freebsd32 openbsd32 linux32 osx32 TEST_OUTPUT: --- fail_compilation/xmmslice.d(110): Error: `__vector(int[4])` cannot be sliced with `[]` diff --git a/compiler/test/runnable/bitfieldsms.c b/compiler/test/runnable/bitfieldsms.c index eb40844236..5aee443d55 100644 --- a/compiler/test/runnable/bitfieldsms.c +++ b/compiler/test/runnable/bitfieldsms.c @@ -1,5 +1,5 @@ /* test bitfields for Microsoft C - * DISABLED: win32 linux32 freebsd32 osx32 linux64 freebsd64 osx64 + * DISABLED: win32 linux freebsd openbsd osx * RUN_OUTPUT: --- DM | MS | P32 | P64 diff --git a/compiler/test/runnable/bitfieldsposix32.c b/compiler/test/runnable/bitfieldsposix32.c index b3aef1e9bd..543d306656 100644 --- a/compiler/test/runnable/bitfieldsposix32.c +++ b/compiler/test/runnable/bitfieldsposix32.c @@ -1,5 +1,5 @@ /* test bitfields - * DISABLED: win32 win64 linux64 freebsd64 osx64 + * DISABLED: win32 win64 linux64 freebsd64 openbsd64 osx64 * RUN_OUTPUT: --- T0 = 1 1 | 1 1 diff --git a/compiler/test/runnable/bitfieldsposix64.c b/compiler/test/runnable/bitfieldsposix64.c index e3a3b24c7f..baedb2f761 100644 --- a/compiler/test/runnable/bitfieldsposix64.c +++ b/compiler/test/runnable/bitfieldsposix64.c @@ -1,5 +1,5 @@ /* test bitfields - * DISABLED: win32 win64 linux32 freebsd32 osx32 + * DISABLED: win32 win64 linux32 freebsd32 openbsd32 osx32 * RUN_OUTPUT: --- T0 = 1 1 | 1 1 diff --git a/compiler/test/runnable/dbitfieldsms.d b/compiler/test/runnable/dbitfieldsms.d index b323ce37f8..42157f7c7b 100644 --- a/compiler/test/runnable/dbitfieldsms.d +++ b/compiler/test/runnable/dbitfieldsms.d @@ -1,6 +1,6 @@ /* test bitfields for Microsoft C * REQUIRED_ARGS: -preview=bitfields - * DISABLED: win32 linux32 freebsd32 osx32 linux64 freebsd64 osx64 + * DISABLED: win32 linux freebsd openbsd osx * RUN_OUTPUT: --- DM | MS | P32 | P64 diff --git a/compiler/test/runnable/dbitfieldsposix32.d b/compiler/test/runnable/dbitfieldsposix32.d index 5af9b6127e..33ef3acdb4 100644 --- a/compiler/test/runnable/dbitfieldsposix32.d +++ b/compiler/test/runnable/dbitfieldsposix32.d @@ -1,6 +1,6 @@ /* test bitfields * REQUIRED_ARGS: -preview=bitfields - * DISABLED: win32 win64 linux64 freebsd64 osx64 + * DISABLED: win32 win64 linux64 freebsd64 openbsd64 osx64 * RUN_OUTPUT: --- T0 = 1 1 | 1 1 diff --git a/compiler/test/runnable/dbitfieldsposix64.d b/compiler/test/runnable/dbitfieldsposix64.d index 4633b75724..59aaf27327 100644 --- a/compiler/test/runnable/dbitfieldsposix64.d +++ b/compiler/test/runnable/dbitfieldsposix64.d @@ -1,6 +1,6 @@ /* test bitfields * REQUIRED_ARGS: -preview=bitfields - * DISABLED: win32 win64 linux32 freebsd32 osx32 + * DISABLED: win32 win64 linux32 freebsd32 openbsd32 osx32 * RUN_OUTPUT: --- T0 = 1 1 | 1 1 diff --git a/compiler/test/runnable/dhry.d b/compiler/test/runnable/dhry.d index 1eb463ce8c..4d2e1b3c64 100644 --- a/compiler/test/runnable/dhry.d +++ b/compiler/test/runnable/dhry.d @@ -1,7 +1,7 @@ /* PERMUTE_ARGS: REQUIRED_ARGS: -release -O -g -inline -DISABLED: freebsd dragonflybsd +DISABLED: freebsd openbsd dragonflybsd Deprecation caused by https://issues.dlang.org/show_bug.cgi?id=20645 */ diff --git a/compiler/test/runnable/extra-files/hello-profile-postscript.sh b/compiler/test/runnable/extra-files/hello-profile-postscript.sh index cb986e0a4f..d986ba5939 100755 --- a/compiler/test/runnable/extra-files/hello-profile-postscript.sh +++ b/compiler/test/runnable/extra-files/hello-profile-postscript.sh @@ -5,7 +5,7 @@ source tools/common_funcs.sh # strip out Dmain since it's symbol differs between windows and non-windows # strip out _d_arraycatnTX and _d_arraysetlengthT since they are part of the # lowering of the array concatenation operator -grep -v 'Dmain\|_d_arraycatnTX\|_d_arraysetlengthT' ${OUTPUT_BASE}.d.trace.def > ${OUTPUT_BASE}.d.trace.def2 +grep -Ev 'Dmain|_d_arraycatnTX|_d_arraysetlengthT' ${OUTPUT_BASE}.d.trace.def > ${OUTPUT_BASE}.d.trace.def2 diff -up --strip-trailing-cr ${EXTRA_FILES}/${TEST_NAME}.d.trace.def ${OUTPUT_BASE}.d.trace.def2 diff --git a/compiler/test/runnable/ice21727.d b/compiler/test/runnable/ice21727.d index 5b5745f9df..c373c53c25 100644 --- a/compiler/test/runnable/ice21727.d +++ b/compiler/test/runnable/ice21727.d @@ -1,5 +1,5 @@ // REQUIRED_ARGS: -m64 -O -inline -// DISABLED: win32 linux32 freebsd32 osx32 netbsd32 dragonflybsd32 +// DISABLED: win32 linux32 freebsd32 osx32 openbsd32 netbsd32 dragonflybsd32 // https://issues.dlang.org/show_bug.cgi?id=21727 import core.simd; diff --git a/compiler/test/runnable/test12.d b/compiler/test/runnable/test12.d index 22f4b84922..9f99d1cc84 100644 --- a/compiler/test/runnable/test12.d +++ b/compiler/test/runnable/test12.d @@ -1,4 +1,5 @@ // PERMUTE_ARGS: -unittest -O -release -inline -fPIC -g +// TRANSFORM_OUTPUT: remove_lines("warning: sprintf\(\) is often misused") extern(C) int printf(const char*, ...); extern(C) int sprintf(char*, const char*, ...); diff --git a/compiler/test/runnable/test17559.d b/compiler/test/runnable/test17559.d index a759f1564c..e485a68334 100644 --- a/compiler/test/runnable/test17559.d +++ b/compiler/test/runnable/test17559.d @@ -1,5 +1,5 @@ // REQUIRED_ARGS: -g -// REQUIRED_ARGS(linux freebsd dragonflybsd): -L-export-dynamic +// REQUIRED_ARGS(linux freebsd openbsd dragonflybsd): -L-export-dynamic // PERMUTE_ARGS: // DISABLED: osx diff --git a/compiler/test/runnable/test19086.d b/compiler/test/runnable/test19086.d index 04e524e4af..9935f55292 100644 --- a/compiler/test/runnable/test19086.d +++ b/compiler/test/runnable/test19086.d @@ -1,5 +1,5 @@ // REQUIRED_ARGS: -g -// REQUIRED_ARGS(linux freebsd dragonflybsd): -L-export-dynamic +// REQUIRED_ARGS(linux freebsd openbsd dragonflybsd): -L-export-dynamic // PERMUTE_ARGS: // DISABLED: osx diff --git a/compiler/test/runnable/test22597.c b/compiler/test/runnable/test22597.c index 799740bfe9..2dac36177a 100644 --- a/compiler/test/runnable/test22597.c +++ b/compiler/test/runnable/test22597.c @@ -1,4 +1,5 @@ // https://issues.dlang.org/show_bug.cgi?id=22597 +// TRANSFORM_OUTPUT: remove_lines("warning: vsprintf\(\) is often misused") typedef __builtin_va_list va_list; int vsprintf(char *s, const char *format, va_list va); diff --git a/compiler/test/runnable/test23343.c b/compiler/test/runnable/test23343.c index 69004d61b8..27ff5a7cb8 100644 --- a/compiler/test/runnable/test23343.c +++ b/compiler/test/runnable/test23343.c @@ -1,4 +1,4 @@ -/* DISABLED: win32 win64 linux32 linux64 freebsd32 freebsd64 osx32 dragonflybsd32 netbsd32 +/* DISABLED: win linux freebsd openbsd osx32 dragonflybsd netbsd */ /* https://issues.dlang.org/show_bug.cgi?id=23343 diff --git a/compiler/test/runnable/test23889.c b/compiler/test/runnable/test23889.c index 46a1bb00ff..2648286d3d 100644 --- a/compiler/test/runnable/test23889.c +++ b/compiler/test/runnable/test23889.c @@ -1,4 +1,4 @@ -// DISABLED: win freebsd +// DISABLED: win freebsd openbsd // https://issues.dlang.org/show_bug.cgi?id=23886 diff --git a/compiler/test/runnable/test_cdstrpar.d b/compiler/test/runnable/test_cdstrpar.d index 80fbaf26ef..90aa499ab9 100644 --- a/compiler/test/runnable/test_cdstrpar.d +++ b/compiler/test/runnable/test_cdstrpar.d @@ -1,7 +1,7 @@ // REQUIRED_ARGS: -O -fPIC // PERMUTE_ARGS: // only testing on SYSV-ABI, but backend code is identical across platforms -// DISABLED: win32 win64 osx linux32 freebsd32 +// DISABLED: win32 win64 osx linux32 freebsd32 openbsd32 debug = PRINTF; debug (PRINTF) import core.stdc.stdio; diff --git a/compiler/test/runnable/testargtypes.d b/compiler/test/runnable/testargtypes.d index a3825b10fb..4492420aa8 100644 --- a/compiler/test/runnable/testargtypes.d +++ b/compiler/test/runnable/testargtypes.d @@ -1,5 +1,5 @@ /* -DISABLED: win32 win64 osx32 linux32 freebsd32 +DISABLED: win32 win64 osx32 linux32 freebsd32 openbsd32 */ void chkArgTypes(S, V...)() diff --git a/compiler/test/runnable/testthread2.d b/compiler/test/runnable/testthread2.d index 2c87ecd8a7..346e3862e5 100644 --- a/compiler/test/runnable/testthread2.d +++ b/compiler/test/runnable/testthread2.d @@ -1,4 +1,5 @@ // PERMUTE_ARGS: +// TRANSFORM_OUTPUT: remove_lines("warning: rand\(\) may return deterministic values") // Quick, dirty and inefficient AA using linear search, useful for testing. struct LinearAA(K, V) { diff --git a/compiler/test/runnable/variadic.d b/compiler/test/runnable/variadic.d index 7e9473c332..ddfd92c167 100644 --- a/compiler/test/runnable/variadic.d +++ b/compiler/test/runnable/variadic.d @@ -1,3 +1,5 @@ +// TRANSFORM_OUTPUT: remove_lines("warning: vsprintf\(\) is often misused") + alias TypeTuple(T...) = T; class A { } diff --git a/compiler/test/runnable/whetstone.d b/compiler/test/runnable/whetstone.d index 9145c74bcf..48f6010b9f 100644 --- a/compiler/test/runnable/whetstone.d +++ b/compiler/test/runnable/whetstone.d @@ -1,5 +1,6 @@ /* PERMUTE_ARGS: -O +TRANSFORM_OUTPUT: remove_lines("warning: sprintf\(\) is often misused") */ /* diff --git a/compiler/test/runnable_cxx/cpp_abi_tests.d b/compiler/test/runnable_cxx/cpp_abi_tests.d index 5d4bc99c1b..4e241749fb 100644 --- a/compiler/test/runnable_cxx/cpp_abi_tests.d +++ b/compiler/test/runnable_cxx/cpp_abi_tests.d @@ -1,5 +1,5 @@ // EXTRA_CPP_SOURCES: cpp_abi_tests.cpp -// CXXFLAGS(linux freebsd osx netbsd dragonflybsd): -std=c++11 +// CXXFLAGS(linux freebsd osx openbsd netbsd dragonflybsd): -std=c++11 // N.B MSVC doesn't have a C++11 switch, but it defaults to the latest fully-supported standard // N.B MSVC 2013 doesn't support char16_t/char32_t diff --git a/compiler/test/runnable_cxx/cppa.d b/compiler/test/runnable_cxx/cppa.d index 34c295590e..3f8d1d6643 100644 --- a/compiler/test/runnable_cxx/cppa.d +++ b/compiler/test/runnable_cxx/cppa.d @@ -2,9 +2,10 @@ // PERMUTE_ARGS: -g // EXTRA_CPP_SOURCES: cppb.cpp // EXTRA_FILES: extra-files/cppb.h -// CXXFLAGS(linux freebsd osx netbsd dragonflybsd): -std=c++11 +// CXXFLAGS(linux freebsd osx openbsd netbsd dragonflybsd): -std=c++11 // druntime isn't linked, this prevents missing symbols '_d_arraybounds_slicep': // REQUIRED_ARGS: -checkaction=C +// TRANSFORM_OUTPUT: remove_lines("warning: vsprintf\(\) is often misused") // N.B MSVC doesn't have a C++11 switch, but it defaults to the latest fully-supported standard diff --git a/compiler/test/tools/d_do_test.d b/compiler/test/tools/d_do_test.d index d2fa379200..814ef98f38 100755 --- a/compiler/test/tools/d_do_test.d +++ b/compiler/test/tools/d_do_test.d @@ -62,7 +62,7 @@ void usage() ~ " DMD: compiler to use, ex: ../src/dmd (required)\n" ~ " CC: C compiler to use, ex: cl, cc\n" ~ " CXX: C++ compiler to use, ex: cl, g++\n" - ~ " OS: windows, linux, freebsd, osx, netbsd, dragonflybsd\n" + ~ " OS: windows, linux, freebsd, osx, openbsd, netbsd, dragonflybsd\n" ~ " RESULTS_DIR: base directory for test results\n" ~ " MODEL: 32 or 64 (required)\n" ~ " AUTO_UPDATE: set to 1 to auto-update mismatching test output\n"