Sorry, I typed the wrong command for running the test. That's the correct command:
ctest -R types_test
Still got the same problem in the second assertion
Thanks for the help
Von: orocos-dev-bounces [..] ... [mailto:orocos-dev-bounces [..] ...] Im Auftrag von Sandra Beyer
Gesendet: Montag, 2. Dezember 2013 14:45
An: 'orocos-dev [..] ...'
Betreff: [Orocos-Dev] Error / Bug: rtt/tests/ types_test fails with AType assignment
I didn't know if my problem is really a topic for the orocos-users mailing list, that's why I post my problem here again.
I test the behaviour of own struct data types with rtt/tests/types_test.cpp. I extended in BOOST_AUTO_TEST_CASE( testTypes ) the following:
In the beginning:
Types()->addType( new StructTypeInfo<AType,false>("astruct"));
Extension of string test:
"var astruct aVar\n" +
"var astruct bVar\n" +
"aVar.a = 42\n" +
"do test.assertMsg(aVar.a == 42, \"aVar.a != 42 assignement failed - testTypes\")\n" +
"bVar = aVar\n" +
"do test.assertMsg(bVar.a == 42, \"aVar.a != 42 assignement failed - testTypes\")\n" +
ctest -R testTypes fails in the second assertion. So the assignment operator doesn't work with own struct types. Any suggestions how I can fix this problem?
I'm using the orocos-toolchain2.6