summaryrefslogtreecommitdiff
path: root/usertests.c
diff options
context:
space:
mode:
authorrsc <rsc>2009-05-31 05:12:21 +0000
committerrsc <rsc>2009-05-31 05:12:21 +0000
commit34295f461a416e40bb76e67c568a761222dc6913 (patch)
tree656ee29b7df282b32953ec927291a68cc0ff2124 /usertests.c
parent949e55902bb0c976f74b5217b82deac65ff8d781 (diff)
downloadxv6-labs-34295f461a416e40bb76e67c568a761222dc6913.tar.gz
xv6-labs-34295f461a416e40bb76e67c568a761222dc6913.tar.bz2
xv6-labs-34295f461a416e40bb76e67c568a761222dc6913.zip
group locks into structs they protect.
few naming nits.
Diffstat (limited to 'usertests.c')
-rw-r--r--usertests.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usertests.c b/usertests.c
index 1d9352d..cc2601c 100644
--- a/usertests.c
+++ b/usertests.c
@@ -6,8 +6,7 @@
char buf[2048];
char name[3];
-char *echo_args[] = { "echo", "ALL", "TESTS", "PASSED", 0 };
-char *cat_args[] = { "cat", "README", 0 };
+char *echoargv[] = { "echo", "ALL", "TESTS", "PASSED", 0 };
int stdout = 1;
// simple file system tests
@@ -191,7 +190,7 @@ void
exectest(void)
{
printf(stdout, "exec test\n");
- if(exec("echo", echo_args) < 0) {
+ if(exec("echo", echoargv) < 0) {
printf(stdout, "exec echo failed\n");
exit();
}