projects
/
pintos-anon
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Mention that process_wait() can be changed to an infinite loop
[pintos-anon]
/
src
/
tests
/
vm
/
pt-write-code-2.c
1
#include "tests/lib.h"
2
#include "tests/main.h"
3
4
void
5
test_main (void)
6
{
7
int handle;
8
9
CHECK ((handle = open ("sample.txt")) > 1, "open \"sample.txt\"");
10
read (handle, (void *) test_main, 1);
11
fail ("survived reading data into code segment");
12
}