summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-08-25 22:24:30 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-08-25 22:24:30 -0700
commit9818e849cbcbd6df1ab48a5052d6180ae620a81f (patch)
tree67e14fc0a1ee02492a06f2f2c43cadc643127b2a
parent9c945a09f2172e5e3089b53d740e17b60c48268d (diff)
downloadtxr-9818e849cbcbd6df1ab48a5052d6180ae620a81f.tar.gz
txr-9818e849cbcbd6df1ab48a5052d6180ae620a81f.tar.bz2
txr-9818e849cbcbd6df1ab48a5052d6180ae620a81f.zip
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.
-rw-r--r--tests/017/mmap.tl3
1 files changed, 2 insertions, 1 deletions
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))