Preserve line breaks from continued line comments
The commit "Preserve line breaks in comments before test functions"
only handled block comments. This commit handles line comments.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
diff --git a/tests/scripts/test_generate_test_code.py b/tests/scripts/test_generate_test_code.py
index 8b2bf78..d23d742 100755
--- a/tests/scripts/test_generate_test_code.py
+++ b/tests/scripts/test_generate_test_code.py
@@ -767,6 +767,8 @@
+
+
void test_func()
{
ba ba black sheep
@@ -813,6 +815,7 @@
expected = '''#line 1 "test_suite_ut.function"
void test_func( int x,
+
int y )
{
ba ba black sheep