Re: testrunner Killed

7 views
Skip to first unread message

Bas Vodde

unread,
Aug 30, 2021, 10:10:34 AM8/30/21
to '张光辉' via cpputest

Hi,

It means it did something very bad :)

I suggest to check the stack trace in gdb.

Bas


On 30 Aug 2021, at 9:59 AM, Jakob Clausen <kaizer...@gmail.com> wrote:

Hi.

I am running a test in CppUTest.

I am using an overloaded operator, that looks like this.
void String::operator=(const std::string& s1)
{
std::string value = s1;
data = value;
}

The test program terminates after the first string copy with the message:
make[3]: *** [CMakeFiles/TFTypes_testrunner.dir/build.make:310: TFTypes_testrunner] Killed
make[3]: *** Deleting file 'TFTypes_testrunner'

What does that mean? Killed?


--
You received this message because you are subscribed to the Google Groups "cpputest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cpputest+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cpputest/e914eeaa-5d71-472b-b743-ad8329a408a4n%40googlegroups.com.

james

unread,
Aug 30, 2021, 11:14:51 AM8/30/21
to cpputest
Could it be recursive?  Calling operator= in operator=


James Grenning

unread,
Aug 30, 2021, 2:30:07 PM8/30/21
to james, cpputest

Hi Jakob

What type is data?

Can you show more?

Whittle it down to a class and test.

Cheers, James

Reply all
Reply to author
Forward
0 new messages