C++ namespace unqualified from the test runner

68 views
Skip to first unread message

Arjun Suresh Raji

unread,
Mar 11, 2015, 4:29:59 AM3/11/15
to cxxtes...@googlegroups.com

Hi ,
I am using cxxtest for testing the firmware code. I am getting strange namespace errors from the generated test runner.

My environment details:
g++ - 3.4.4
arch - mips
cxxtest version : 3.10 ( downgraded to compatibility for g++)

<excerpt_from_the_build_log>
In file included from path/to/cxxtest_include_path/cxxtest/Root.cpp:9,
                 from path/to/module/test_module.cpp:295:
path/to/cxxtest_include_path//cxxtest/Descriptions.cpp:6: error: expected unqualified-id before "namespace"
In file included from path/to/cxxtest_include_path/cxxtest/Root.cpp:10,
                 from path/to/module/test_module.cpp:295:
path/to/cxxtest_include_path//cxxtest/DummyDescriptions.cpp:3: error: expected unqualified-id before "namespace"
In file included from path/to/cxxtest_include_path/cxxtest/Root.cpp:11,
                 from path/to/module/test_module.cpp:295:
path/to/cxxtest_include_path//cxxtest/GlobalFixture.cpp:6: error: expected unqualified-id before "namespace"
In file included from path/to/cxxtest_include_path/cxxtest/Root.cpp:12,
                 from path/to/module/test_module.cpp:295:
path/to/cxxtest_include_path//cxxtest/LinkedList.cpp:6: error: expected unqualified-id before "namespace"
In file included from path/to/cxxtest_include_path/cxxtest/Root.cpp:13,
                 from path/to/module/test_module.cpp:295:
path/to/cxxtest_include_path//cxxtest/RealDescriptions.cpp:11: error: expected unqualified-id before "namespace"
In file included from path/to/cxxtest_include_path/cxxtest/Root.cpp:14,
                 from path/to/module/test_module.cpp:295:
path/to/cxxtest_include_path//cxxtest/TestSuite.cpp:6: error: expected unqualified-id before "namespace"
In file included from path/to/cxxtest_include_path/cxxtest/Root.cpp:15,
                 from path/to/module/test_module.cpp:295:
path/to/cxxtest_include_path//cxxtest/TestTracker.cpp:6: error: expected unqualified-id before "namespace"
In file included from path/to/cxxtest_include_path/cxxtest/Root.cpp:16,
                 from path/to/module/test_module.cpp:295:
path/to/cxxtest_include_path//cxxtest/ValueTraits.cpp:6: error: expected unqualified-id before "namespace"
path/to/module/test_module.cpp:296: error: expected unqualified-id before "namespace"
path/to/module/test_module.cpp:366: error: expected `}' at end of input
path/to/module/test_module.cpp:292: error: expected unqualified-id at end of input
path/to/module/test_module.cpp:292: error: expected `,' or `;' at end of input
<excerpt_from_the_build_log>

I am not able to figure out the problem in the generated files.
Kindly help me.
- arjuns

Arjun Suresh Raji

unread,
Mar 17, 2015, 12:54:24 AM3/17/15
to cxxtes...@googlegroups.com
Any update ?
Reply all
Reply to author
Forward
0 new messages