Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
3460418c
Commit
3460418c
authored
Sep 08, 2009
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't run dependent tests if one fails.
parent
b0f7eb29
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
tools/ccanlint/ccanlint.c
tools/ccanlint/ccanlint.c
+16
-8
No files found.
tools/ccanlint/ccanlint.c
View file @
3460418c
...
@@ -100,6 +100,9 @@ static bool run_test(struct ccanlint *i,
...
@@ -100,6 +100,9 @@ static bool run_test(struct ccanlint *i,
else
else
this_score
=
0
;
this_score
=
0
;
list_del
(
&
i
->
list
);
list_add_tail
(
&
finished_tests
,
&
i
->
list
);
*
score
+=
this_score
;
*
score
+=
this_score
;
if
(
summary
)
{
if
(
summary
)
{
printf
(
"%s FAILED (%u/%u)
\n
"
,
printf
(
"%s FAILED (%u/%u)
\n
"
,
...
@@ -107,17 +110,22 @@ static bool run_test(struct ccanlint *i,
...
@@ -107,17 +110,22 @@ static bool run_test(struct ccanlint *i,
if
(
verbose
)
if
(
verbose
)
indent_print
(
i
->
describe
(
m
,
result
));
indent_print
(
i
->
describe
(
m
,
result
));
list_del
(
&
i
->
list
);
}
else
{
list_add_tail
(
&
finished_tests
,
&
i
->
list
);
return
false
;
}
printf
(
"%s
\n
"
,
i
->
describe
(
m
,
result
));
printf
(
"%s
\n
"
,
i
->
describe
(
m
,
result
));
if
(
i
->
handle
)
if
(
i
->
handle
)
i
->
handle
(
m
,
result
);
i
->
handle
(
m
,
result
);
list_del
(
&
i
->
list
);
}
list_add_tail
(
&
finished_tests
,
&
i
->
list
);
/* Skip any tests which depend on this one. */
list_for_each
(
&
i
->
dependencies
,
d
,
node
)
{
list_del
(
&
d
->
dependent
->
list
);
list_add
(
&
finished_tests
,
&
d
->
dependent
->
list
);
if
(
verbose
)
printf
(
" -> skipping %s
\n
"
,
d
->
dependent
->
name
);
*
total_score
+=
d
->
dependent
->
total_score
;
}
return
false
;
return
false
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment