Make tests public. Rewrite most tests. Add tests.
[pintos-anon] / src / tests / vm / mmap-twice.ck
1 # -*- perl -*-
2 use strict;
3 use warnings;
4 use tests::tests;
5 check_expected (IGNORE_EXIT_CODES => 1, [<<'EOF']);
6 (mmap-twice) begin
7 (mmap-twice) open "sample.txt" #0
8 (mmap-twice) mmap "sample.txt" #0 at 0x10000000
9 (mmap-twice) open "sample.txt" #1
10 (mmap-twice) mmap "sample.txt" #1 at 0x20000000
11 (mmap-twice) compare mmap'd file 0 against data
12 (mmap-twice) compare mmap'd file 1 against data
13 (mmap-twice) end
14 EOF