Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Sylvain Joubert
KWSys
Commits
45846cf6
Commit
45846cf6
authored
19 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Added a way to quickly enable manual testing of grandchild killing.
parent
79a6bee6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testProcess.c
+13
-1
13 additions, 1 deletion
testProcess.c
with
13 additions
and
1 deletion
testProcess.c
+
13
−
1
View file @
45846cf6
...
...
@@ -84,6 +84,14 @@ int test4(int argc, const char* argv[])
return
0
;
}
/* Quick hack to test grandchild killing. */
/*#define TEST5_GRANDCHILD_KILL*/
#ifdef TEST5_GRANDCHILD_KILL
# define TEST5_TIMEOUT 10
#else
# define TEST5_TIMEOUT 30
#endif
int
test5
(
int
argc
,
const
char
*
argv
[])
{
int
r
;
...
...
@@ -91,7 +99,11 @@ int test5(int argc, const char* argv[])
(
void
)
argc
;
cmd
[
0
]
=
argv
[
0
];
cmd
[
1
]
=
"run"
;
#ifdef TEST5_GRANDCHILD_KILL
cmd
[
2
]
=
"3"
;
#else
cmd
[
2
]
=
"4"
;
#endif
cmd
[
3
]
=
0
;
fprintf
(
stdout
,
"Output on stdout before recursive test.
\n
"
);
fprintf
(
stderr
,
"Output on stderr before recursive test.
\n
"
);
...
...
@@ -377,7 +389,7 @@ int main(int argc, const char* argv[])
int
values
[
7
]
=
{
0
,
123
,
1
,
1
,
0
,
0
,
0
};
int
outputs
[
7
]
=
{
1
,
1
,
1
,
1
,
1
,
0
,
1
};
int
delays
[
7
]
=
{
0
,
0
,
0
,
0
,
0
,
1
,
0
};
double
timeouts
[
7
]
=
{
10
,
10
,
10
,
10
,
30
,
10
,
-
1
};
double
timeouts
[
7
]
=
{
10
,
10
,
10
,
10
,
TEST5_TIMEOUT
,
10
,
-
1
};
int
polls
[
7
]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
1
};
int
repeat
[
7
]
=
{
2
,
1
,
1
,
1
,
1
,
1
,
1
};
int
r
;
...
...
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