Skip some tests on OpenBSD

sigint2 would hang (probably because of different semantics in signal
delivery?)

wcstod isn't implemented correctly, so math can't do hex numbers.

OpenBSD only passes the filename as argv[0] and doesn't give us another feature I know of, so status fish-path can't work.
This commit is contained in:
Fabian Homborg 2021-06-24 20:07:54 +02:00
parent 66bc6ce77d
commit a3eea4325e
3 changed files with 14 additions and 4 deletions

View file

@ -1,4 +1,7 @@
#RUN: %fish %s
# OpenBSD doesn't do hex numbers in str/wcstod (like C99 requires).
# So let's skip this.
#REQUIRES: test "$(uname)" != OpenBSD
# Validate basic expressions
math 3 / 2
# CHECK: 1.5

View file

@ -1,4 +1,6 @@
#RUN: %fish -C "set helper %fish_test_helper" %s
# This hangs on OpenBSD
#REQUIRES: test "$(uname)" != OpenBSD
# Ensure that if child processes SIGINT, we exit our loops
# Test for #3780

View file

@ -5,10 +5,15 @@ status line-number
# Check status fish-path
# No output expected on success
set status_fish_path (realpath (status fish-path))
set env_fish_path (realpath $FISH_PATH)
test "$status_fish_path" = "$env_fish_path"
or echo "Fish path disagreement: $status_fish_path vs $env_fish_path"
#
# argv[0] on OpenBSD is just the filename, not the path
# That means fish-path is unsupportable there.
if not contains (uname) OpenBSD
set status_fish_path (realpath (status fish-path))
set env_fish_path (realpath $FISH_PATH)
test "$status_fish_path" = "$env_fish_path"
or echo "Fish path disagreement: $status_fish_path vs $env_fish_path"
end
# Check is-block
status is-block