Add more tests for system calls to deal with bad buffers given to read and write

This commit is contained in:
sBubshait
2024-11-13 16:21:12 +00:00
parent 8bcd0a467c
commit 30e49846b5
12 changed files with 103 additions and 27 deletions

View File

@@ -2,12 +2,7 @@
use strict;
use warnings;
use tests::tests;
check_expected ([<<'EOF', <<'EOF']);
(write-bad-ptr) begin
(write-bad-ptr) open "sample.txt"
(write-bad-ptr) end
write-bad-ptr: exit(0)
EOF
check_expected ([<<'EOF']);
(write-bad-ptr) begin
(write-bad-ptr) open "sample.txt"
write-bad-ptr: exit(-1)