aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/vm/mmap-inherit.ck
blob: 7e69122ca559f1ba00787cb6c9a360607c1f9a94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# -*- perl -*-
use strict;
use warnings;
use tests::tests;
check_expected ( [<<'EOF']);
(mmap-inherit) begin
(mmap-inherit) open "sample.txt"
(mmap-inherit) mmap "sample.txt"
(mmap-inherit) exec "child-inherit"
(child-inherit) begin
child-inherit: exit(-1)
(mmap-inherit) checking that mmap'd file still has same data
(mmap-inherit) end
mmap-inherit: exit(0)
EOF
pass;