check_GNU_style_lib.py: Fix trailing whitespace check
authorTom de Vries <tom@codesourcery.com>
Mon, 29 May 2017 07:31:11 +0000 (07:31 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Mon, 29 May 2017 07:31:11 +0000 (07:31 +0000)
commit0a71c876a1ed4331002cdd3c09d09252de4d5d89
treecbec4ccd47a9fc11d0ffafac77fa0638c1564680
parent75017bb9750fdbed1ab51c99a7306976a9fa83c2
check_GNU_style_lib.py: Fix trailing whitespace check

2017-05-29  Tom de Vries  <tom@codesourcery.com>

* check_GNU_style_lib.py (TrailingWhitespaceCheck.check): Assert no
trailing eol.
(TrailingWhitespaceTest): New unit test.
(check_GNU_style_file): Remove eol before checking.

From-SVN: r248556
contrib/ChangeLog
contrib/check_GNU_style_lib.py