diff options
author | Martin Liska <mliska@suse.cz> | 2021-06-28 13:08:10 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-06-28 13:43:41 +0200 |
commit | b838641bb0d4de5b25128b54012155ab46f452d0 (patch) | |
tree | c73b2144139c1f89eedec57bd6ae50dd0d7a06f1 /contrib/test_mklog.py | |
parent | 9fe9c45ae33a2df7a73a7c8d9a92a649206a15b7 (diff) | |
download | gcc-b838641bb0d4de5b25128b54012155ab46f452d0.zip gcc-b838641bb0d4de5b25128b54012155ab46f452d0.tar.gz gcc-b838641bb0d4de5b25128b54012155ab46f452d0.tar.bz2 |
mklog: Handle correctly long lines.
contrib/ChangeLog:
* mklog.py: Handle correctly long lines.
* test_mklog.py: Test it.
Diffstat (limited to 'contrib/test_mklog.py')
-rwxr-xr-x | contrib/test_mklog.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/contrib/test_mklog.py b/contrib/test_mklog.py index f5e9ecd..bf2f280 100755 --- a/contrib/test_mklog.py +++ b/contrib/test_mklog.py @@ -443,6 +443,27 @@ gcc/ChangeLog: ''' +PATCH10 = '''\ +diff --git a/libgomp/doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst b/libgomp/doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst +new file mode 100644 +index 00000000000..ad3c6d856fc +--- /dev/null ++++ b/libgomp/doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst +@@ -0,0 +1,3 @@ ++ ++ ++ + +''' + +EXPECTED10 = '''\ +libgomp/ChangeLog: + + * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst: + New file. + +''' + class TestMklog(unittest.TestCase): def test_macro_definition(self): changelog = generate_changelog(PATCH1) @@ -485,3 +506,7 @@ class TestMklog(unittest.TestCase): def test_define_macro_parsing(self): changelog = generate_changelog(PATCH9) assert changelog == EXPECTED9 + + def test_long_filenames(self): + changelog = generate_changelog(PATCH10) + assert changelog == EXPECTED10 |