aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-18 14:09:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-18 14:09:59 +0200
commit18bed2c174362f76ddedf68bb700e8b2c817fcb5 (patch)
tree463c4a495386c9ec1869f4434367bfcfc43ea884 /tests
parent639ff12af754d024a562925a52406ace0d3c673b (diff)
Complete NetBSD compatibility
Diffstat (limited to 'tests')
-rw-r--r--tests/backtrace/testscript5
-rw-r--r--tests/target-triplet/driver.cxx8
2 files changed, 12 insertions, 1 deletions
diff --git a/tests/backtrace/testscript b/tests/backtrace/testscript
index 206e1a5..fe4cb37 100644
--- a/tests/backtrace/testscript
+++ b/tests/backtrace/testscript
@@ -6,7 +6,10 @@ tsys = $cxx.target.system
: basic
:
-if ($tclass == 'linux' || $tclass == 'macos' || $tsys == 'freebsd')
+if ($tclass == 'linux' || \
+ $tclass == 'macos' || \
+ $tsys == 'freebsd' || \
+ $tsys == 'netbsd')
{
# The stack frame line format varies among OSes. The only common thing is
# the '0x' function address prefix.
diff --git a/tests/target-triplet/driver.cxx b/tests/target-triplet/driver.cxx
index 62e6503..0bb305e 100644
--- a/tests/target-triplet/driver.cxx
+++ b/tests/target-triplet/driver.cxx
@@ -89,6 +89,10 @@ main ()
"x86_64-linux-gnux32",
"x86_64", "", "linux-gnux32", "", "linux"));
+ assert (test ("x86_64--netbsd",
+ "x86_64-netbsd",
+ "x86_64", "", "netbsd", "", "bsd"));
+
// Removal of none-.
//
assert (test ("arm-none",
@@ -109,6 +113,10 @@ main ()
"x86_64-freebsd10.2",
"x86_64", "", "freebsd", "10.2", "bsd"));
+ assert (test ("x86_64-unknown-netbsd9.0",
+ "x86_64-netbsd9.0",
+ "x86_64", "", "netbsd", "9.0", "bsd"));
+
assert (test ("x86_64-pc-openbsd5.6",
"x86_64-openbsd5.6",
"x86_64", "", "openbsd", "5.6", "bsd"));