diff options
author | Anders Kalør <anders@kaloer.com> | 2019-08-10 21:49:55 +0200 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2019-12-04 12:10:33 -0500 |
commit | b6580394aea850f5176469d854696e4f55e11918 (patch) | |
tree | 832f3aed71d1c2cc2ba83e56894470612867019d /gr-utils/python | |
parent | df14dfd1f12605ae5dcf3a395059e255a7fcd73f (diff) |
Add gr::modname namespace to Boost UTF template
Diffstat (limited to 'gr-utils/python')
-rw-r--r-- | gr-utils/python/modtool/templates/templates.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gr-utils/python/modtool/templates/templates.py b/gr-utils/python/modtool/templates/templates.py index e6c1197dd1..f811dc610a 100644 --- a/gr-utils/python/modtool/templates/templates.py +++ b/gr-utils/python/modtool/templates/templates.py @@ -453,11 +453,16 @@ ${str_to_fancyc_comment(license)} #include <gnuradio/attributes.h> #include <boost/test/unit_test.hpp> -BOOST_AUTO_TEST_CASE(test_${blockname}_t1) -{ - // Put test here -} +namespace gr { + namespace ${modname} { + + BOOST_AUTO_TEST_CASE(test_${blockname}_t1) + { + // Put test here + } + } /* namespace ${modname} */ +} /* namespace gr */ ''' # C++ file for QA |