From 9818e849cbcbd6df1ab48a5052d6180ae620a81f Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 25 Aug 2021 22:24:30 -0700 Subject: mmap tests: BSD patch. * tests/017/mmap.tl: On BSD, the map-anon test case where we don't specify map-private or map-shared doesn't result in an invalid argument error; a mapping is produced. --- tests/017/mmap.tl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/017/mmap.tl b/tests/017/mmap.tl index aab86a0e..818540a5 100644 --- a/tests/017/mmap.tl +++ b/tests/017/mmap.tl @@ -49,4 +49,5 @@ (assert (equal (file-get-buf fname) rndbuf0))) (remove-path fname))) -(assert (null (ignerr (mmap (ffi char) 4096 prot-read map-anon)))) +(unless (eq (os-symbol) :bsd) + (test (ignerr (mmap (ffi char) 4096 prot-read map-anon)) nil)) -- cgit v1.2.3