linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] fix discarded label statement
@ 2016-11-10 14:45 Luc Van Oostenryck
  2016-11-10 14:45 ` [PATCH 1/3] testsuite: add tag to ignore the output/error Luc Van Oostenryck
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Luc Van Oostenryck @ 2016-11-10 14:45 UTC (permalink / raw)
  To: linux-sparse; +Cc: Luc Van Oostenryck, Christopher Li

This series fixes a bug occurring when code contains an unsed statement.
In this case, not only the label is ignored, but the following statement
is also erroneously discarded together with the label.

This can be easily verified by inspecting the output of test-linearize
but can't be tested directly with the current test suite.
So patches 1 & 2 contain two small improvements to the test suite that
allow to test this sort of thing directly, the fix itself and its test
are in patch 3.

Luc Van Oostenryck (3):
  testsuite: add tag to ignore the output/error
  testsuite: check patterns presence or absence in output
  fix discarded label statement

 Documentation/test-suite               | 16 ++++++++++
 linearize.c                            |  2 +-
 validation/discarded-label-statement.c | 24 +++++++++++++++
 validation/test-suite                  | 54 ++++++++++++++++++++++++++++++++++
 4 files changed, 95 insertions(+), 1 deletion(-)
 create mode 100644 validation/discarded-label-statement.c

-- 
2.10.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-11-17 17:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-10 14:45 [PATCH 0/3] fix discarded label statement Luc Van Oostenryck
2016-11-10 14:45 ` [PATCH 1/3] testsuite: add tag to ignore the output/error Luc Van Oostenryck
2016-11-17 17:15   ` Christopher Li
2016-11-10 14:45 ` [PATCH 2/3] testsuite: check patterns presence or absence in output Luc Van Oostenryck
2016-11-10 14:45 ` [PATCH 3/3] fix discarded label statement Luc Van Oostenryck
2016-11-17 17:19   ` Christopher Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).