From 47d5feb3175a8cd1dfb515c0f552eb50d2edad47 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 20 Apr 2021 02:25:04 -0700 Subject: openbsd: fix tests. * tests/014/socket-basic.tl (%iters%): Also reduce to 2000 on OpenBSD, to avoid the default limit on UDP datagram size. * tests/017/glob-carray.tl: Use the BSD-style struct glob-t on OpenBSD also. * tests/017/glob-zarray.tl: Likewise. * tests/018/chmod.tl (os): New global variable. (test-sticky): s-isvtx not allowed for non-root user on OpenBSD, so we falsify this variable. * tests/common.tl (os-symbol): Add OpenBSD case, producing :openbsd keyword symbol. (libc): Let's just use (dlopen nil) for any platform that isn't Cygwin or Cygnal. --- tests/014/socket-basic.tl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/014') diff --git a/tests/014/socket-basic.tl b/tests/014/socket-basic.tl index bbdab7f9..1b4464fb 100644 --- a/tests/014/socket-basic.tl +++ b/tests/014/socket-basic.tl @@ -3,7 +3,7 @@ (defvar socktype) -(defvar %iters% (if (eql :macos (os-symbol)) 2000 5000)) +(defvar %iters% (if (meql (os-symbol) :macos :openbsd) 2000 5000)) (defun client (addr) (with-stream (cli-sock (open-socket af-inet socktype)) -- cgit v1.2.3