Re: [Discuss-gnuradio] Testing PMT blocks

2016-06-14 Thread Dave NotTelling
I am noticing that calling `CPPUNIT_ASSERT_MESSAGE("moo", 1 == 2)` in C++ unit tests does cause the test to fail, but does not print the message. Is there something I need to do in order to get the output I expect? Not having any output from the messages makes figuring out what happened a pain

Re: [Discuss-gnuradio] Testing PMT blocks

2016-06-10 Thread Sebastian Müller
Hi Dave, if you need a block that just passes messages, try the Message Strobe. If this is not what you want, can you please publish your block code so we can reproduce the behaivour? From your error message, maybe you have forgotten to put the "self" parameter in the method declaration? That is

Re: [Discuss-gnuradio] Testing PMT blocks

2016-06-09 Thread Dave NotTelling
I am also noticing that the unit test runs twice. Is there a particular reason for that? Also, if I call self.assertTrue() on something I know is false ('1 == 2' for example) before self.tb.stop() is called, the test just hangs. If I call self.tb.stop() and then call the same assert statement,

[Discuss-gnuradio] Testing PMT blocks

2016-06-07 Thread Dave NotTelling
I would like to make some unit tests for a PMT only block I created, but I haven't been able to find any good examples aside from a StackOverflow post ( http://stackoverflow.com/questions/36342285/testing-a-gnu-radio-message-accepting-block-with-post). The hope was that I could simply access the