projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve basic alarm clock test.
[pintos-anon]
/
grading
/
filesys
/
grow-dir.inc
diff --git
a/grading/filesys/grow-dir.inc
b/grading/filesys/grow-dir.inc
index df3cbdfd881fcb9861f81d77aa77e049a2707bd6..4a764f16ce09dc25cad3c87635dd8b6186118e31 100644
(file)
--- a/
grading/filesys/grow-dir.inc
+++ b/
grading/filesys/grow-dir.inc
@@
-12,14
+12,13
@@
return_block_size (void)
return sizeof buf;
}
return sizeof buf;
}
-int
-main (void)
+void
+
test_
main (void)
{
size_t i;
{
size_t i;
- msg ("begin");
#ifdef DIRECTORY
#ifdef DIRECTORY
-
check
(mkdir (DIRECTORY), "mkdir %s", DIRECTORY);
+
CHECK
(mkdir (DIRECTORY), "mkdir %s", DIRECTORY);
#define DIR_PREFIX DIRECTORY "/"
#else
#define DIR_PREFIX ""
#define DIR_PREFIX DIRECTORY "/"
#else
#define DIR_PREFIX ""
@@
-32,10
+31,9
@@
main (void)
msg ("creating and checking \"%s\"", filename);
quiet = true;
msg ("creating and checking \"%s\"", filename);
quiet = true;
- seq_test (filename, buf, sizeof buf, sizeof buf, 0,
+ seq_test (filename,
+ buf, sizeof buf, sizeof buf,
return_block_size, NULL);
quiet = false;
}
return_block_size, NULL);
quiet = false;
}
- msg ("end");
- return 0;
}
}