From 18bed2c174362f76ddedf68bb700e8b2c817fcb5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 18 Jun 2020 14:09:59 +0200 Subject: Complete NetBSD compatibility --- tests/backtrace/testscript | 5 ++++- tests/target-triplet/driver.cxx | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'tests') 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")); -- cgit v1.1