summaryrefslogtreecommitdiffstats
path: root/tests/017
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
commit8984d14da07ff8eb82bccd2b5cede969dcbd5f34 (patch)
tree67e14fc0a1ee02492a06f2f2c43cadc643127b2a /tests/017
parentfbf6dc4cd7c14ab8b5ae6901dd654ea42612db5f (diff)
downloadtxr-8984d14da07ff8eb82bccd2b5cede969dcbd5f34.tar.gz
txr-8984d14da07ff8eb82bccd2b5cede969dcbd5f34.tar.bz2
txr-8984d14da07ff8eb82bccd2b5cede969dcbd5f34.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.
Diffstat (limited to 'tests/017')
-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))