projects
/
pintos-anon
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
282667ad629ab8422f652f9fb2fde381ceeac324
[pintos-anon]
/
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
}