provided code
This commit is contained in:
15
src/tests/userprog/read-bad-ptr.ck
Normal file
15
src/tests/userprog/read-bad-ptr.ck
Normal file
@@ -0,0 +1,15 @@
|
||||
# -*- perl -*-
|
||||
use strict;
|
||||
use warnings;
|
||||
use tests::tests;
|
||||
check_expected ([<<'EOF', <<'EOF']);
|
||||
(read-bad-ptr) begin
|
||||
(read-bad-ptr) open "sample.txt"
|
||||
(read-bad-ptr) end
|
||||
read-bad-ptr: exit(0)
|
||||
EOF
|
||||
(read-bad-ptr) begin
|
||||
(read-bad-ptr) open "sample.txt"
|
||||
read-bad-ptr: exit(-1)
|
||||
EOF
|
||||
pass;
|
||||
Reference in New Issue
Block a user