Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSEP551
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Krishna Vinnakota
CSEP551
Commits
f3c393ba
Commit
f3c393ba
authored
18 years ago
by
rsc
Browse files
Options
Downloads
Patches
Plain Diff
fix tests
parent
641e29c5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
usertests.c
+9
-3
9 additions, 3 deletions
usertests.c
with
9 additions
and
3 deletions
usertests.c
+
9
−
3
View file @
f3c393ba
...
...
@@ -6,7 +6,7 @@
char
buf
[
2048
];
char
name
[
3
];
char
*
echo_args
[]
=
{
"echo"
,
"
hello"
,
"goodbye
"
,
0
};
char
*
echo_args
[]
=
{
"echo"
,
"
ALL"
,
"TESTS"
,
"PASSED
"
,
0
};
char
*
cat_args
[]
=
{
"cat"
,
"README"
,
0
};
int
stdout
=
1
;
...
...
@@ -363,7 +363,7 @@ sharedfd()
}
pid
=
fork
();
memset
(
buf
,
pid
==
0
?
'c'
:
'p'
,
sizeof
(
buf
));
for
(
i
=
0
;
i
<
1000
00
;
i
++
){
for
(
i
=
0
;
i
<
1000
;
i
++
){
if
(
write
(
fd
,
buf
,
sizeof
(
buf
))
!=
sizeof
(
buf
)){
printf
(
1
,
"fstests: write sharedfd failed
\n
"
);
break
;
...
...
@@ -390,7 +390,7 @@ sharedfd()
}
close
(
fd
);
unlink
(
"sharedfd"
);
if
(
nc
==
1000
&&
np
==
1000
)
if
(
nc
==
1000
0
&&
np
==
1000
0
)
printf
(
1
,
"sharedfd ok
\n
"
);
else
printf
(
1
,
"sharedfd oops %d %d
\n
"
,
nc
,
np
);
...
...
@@ -1022,6 +1022,12 @@ int
main
(
int
argc
,
char
*
argv
[])
{
printf
(
1
,
"usertests starting
\n
"
);
if
(
open
(
"usertests.ran"
,
0
)
>=
0
){
printf
(
1
,
"already ran user tests -- rebuild fs.img
\n
"
);
exit
();
}
close
(
open
(
"usertests.ran"
,
O_CREATE
));
opentest
();
writetest
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment