summaryrefslogtreecommitdiff
path: root/contrib/gcc-changelog/test_email.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc-changelog/test_email.py')
-rwxr-xr-xcontrib/gcc-changelog/test_email.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/gcc-changelog/test_email.py b/contrib/gcc-changelog/test_email.py
index 98f2ecd258d..df350a41228 100755
--- a/contrib/gcc-changelog/test_email.py
+++ b/contrib/gcc-changelog/test_email.py
@@ -370,3 +370,13 @@ class TestGccChangelog(unittest.TestCase):
email = self.from_patch_glob('0001-tree-optimization-97633-fix')
assert len(email.errors) == 1
assert email.errors[0].message == 'empty group "()" found'
+
+ def test_emptry_entry_desc(self):
+ email = self.from_patch_glob('0001-c-Set-CALL_FROM_NEW_OR')
+ assert len(email.errors) == 1
+ assert email.errors[0].message == 'missing description of a change'
+
+ def test_emptry_entry_desc_2(self):
+ email = self.from_patch_glob('0001-lto-fix-LTO-debug')
+ assert not email.errors
+ assert len(email.changelog_entries) == 1