diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-08-25 22:24:30 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-08-25 22:24:30 -0700 |
commit | 8984d14da07ff8eb82bccd2b5cede969dcbd5f34 (patch) | |
tree | 67e14fc0a1ee02492a06f2f2c43cadc643127b2a | |
parent | fbf6dc4cd7c14ab8b5ae6901dd654ea42612db5f (diff) | |
download | txr-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.
-rw-r--r-- | tests/017/mmap.tl | 3 |
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)) |