You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My issue is with tokens.push(&t);. It does not change the size of the queue tokens. After the push operation the size of tokens is zero. The same behavior happens when using emplace.
I've tried using a vector instead of a queue, and push_back works as intended, changing the size of the vector. I need to use a queue though...
Other things I've tried:
Defining CATCH_CONFIG_MAIN in the same file as this test case - still seeing this error
Defining CATCH_CONFIG_MAIN in another file - still seeing this error
Removing [multi-file:2] tag - still seeing this error
Changing to std::queue<int> - still seeing this error
BUT, moving this code to a main method of the program made the bug go away - the queue behaved as normal.
... really confused! :(
Extra information
This is the actual error I'm getting in the CLion test runner:
/fakepath/test/ParserTest.cpp:14: Failure:
fatal error
Process finished with exit code 132 (interrupted by signal 4: SIGILL)
Catch version: v2.3.0
Operating System: macOS High Sierra
IDE: CLion 2018.2.2
Compiler+version: Whatever default C++ compiler used by XCode 9.4.1
The text was updated successfully, but these errors were encountered:
Description
I'm writing a test that involves pushing items to a queue:
My issue is with
tokens.push(&t);
. It does not change the size of the queuetokens
. After thepush
operation the size oftokens
is zero. The same behavior happens when usingemplace
.I've tried using a vector instead of a queue, and
push_back
works as intended, changing the size of the vector. I need to use a queue though...Other things I've tried:
CATCH_CONFIG_MAIN
in the same file as this test case - still seeing this errorCATCH_CONFIG_MAIN
in another file - still seeing this error[multi-file:2]
tag - still seeing this errorstd::queue<int>
- still seeing this errorBUT, moving this code to a
main
method of the program made the bug go away - the queue behaved as normal.... really confused! :(
Extra information
This is the actual error I'm getting in the CLion test runner:
The text was updated successfully, but these errors were encountered: