summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-07-07 13:43:35 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-18 13:17:54 +0200
commit795687417ff537fdbd533e62e38377ad920d12fa (patch)
tree319d37805ce172a983fd95c8a818b90a8d0c1519
parent46916c6303dda9ceda1b93b47740eb4fa593a5e3 (diff)
downloadrtems-central-795687417ff537fdbd533e62e38377ad920d12fa.tar.bz2
content: Add CContent.add_includes() test case
-rw-r--r--rtemsspec/tests/test_content_c.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/rtemsspec/tests/test_content_c.py b/rtemsspec/tests/test_content_c.py
index 8a24caf..64123f5 100644
--- a/rtemsspec/tests/test_content_c.py
+++ b/rtemsspec/tests/test_content_c.py
@@ -119,6 +119,12 @@ def test_add_includes():
#include <i/l/k>
"""
content = CContent()
+ content.add_includes([CInclude("a", "X")])
+ assert str(content) == """#if X
+ #include <a>
+#endif
+"""
+ content = CContent()
content.add_includes([CInclude("a", "X"), CInclude("a")])
assert str(content) == """#if X
#include <a>