-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create_parse_bye test fails in Linux #50
Comments
Wow, found it! In Linux this does not work as expected: ByePacket::Iterator it = bye1.Begin();
fct_chk_eq_int(*(it), ssrc1);
fct_chk_eq_int(*(++it), ssrc2); But this does work: ByePacket::Iterator it = bye1.Begin();
fct_chk_eq_int(*(it), ssrc1);
it++;
fct_chk_eq_int(*(it), ssrc2); |
I don't know why this happens. The following C++ #include <iostream>
#include <vector>
int main()
{
std::vector<int> values;
values.push_back(1111);
values.push_back(2222);
std::vector<int>::iterator it = values.begin();
std::cout << "first value : " << *it << std::endl;
std::cout << "second value : " << *(++it) << std::endl;
} $ g++ -std=c++11 foo.cpp && ./a.out
first value : 1111
second value : 2222 So I will reopen the issue. |
Weird.., let me check it. |
By doing some local testings, I think that parameters given to |
I guess this issue does not make sense anymore |
Indeed. I've tested the original code with the new test unit framework and it does NOT fail in Linux: REQUIRE(*(++it) == ssrc2); |
The text was updated successfully, but these errors were encountered: