diff options
Diffstat (limited to 'bitbake/lib/bb/tests/parse.py')
-rw-r--r-- | bitbake/lib/bb/tests/parse.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/parse.py b/bitbake/lib/bb/tests/parse.py index 2898f9bb14..1a3b74934d 100644 --- a/bitbake/lib/bb/tests/parse.py +++ b/bitbake/lib/bb/tests/parse.py | |||
@@ -194,3 +194,26 @@ deltask ${EMPTYVAR} | |||
194 | self.assertTrue('addtask ignored: " do_patch"' in stdout) | 194 | self.assertTrue('addtask ignored: " do_patch"' in stdout) |
195 | #self.assertTrue('dependent task do_foo for do_patch does not exist' in stdout) | 195 | #self.assertTrue('dependent task do_foo for do_patch does not exist' in stdout) |
196 | 196 | ||
197 | broken_multiline_comment = """ | ||
198 | # First line of comment \\ | ||
199 | # Second line of comment \\ | ||
200 | |||
201 | """ | ||
202 | def test_parse_broken_multiline_comment(self): | ||
203 | f = self.parsehelper(self.broken_multiline_comment) | ||
204 | with self.assertRaises(bb.BBHandledException): | ||
205 | d = bb.parse.handle(f.name, self.d)[''] | ||
206 | |||
207 | |||
208 | comment_in_var = """ | ||
209 | VAR = " \\ | ||
210 | SOMEVAL \\ | ||
211 | # some comment \\ | ||
212 | SOMEOTHERVAL \\ | ||
213 | " | ||
214 | """ | ||
215 | def test_parse_comment_in_var(self): | ||
216 | f = self.parsehelper(self.comment_in_var) | ||
217 | with self.assertRaises(bb.BBHandledException): | ||
218 | d = bb.parse.handle(f.name, self.d)[''] | ||
219 | |||