Skip to content
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

Fix tests to get them pass on AArch64 #4

Closed
wants to merge 3 commits into from
Closed

Fix tests to get them pass on AArch64 #4

wants to merge 3 commits into from

Conversation

hrw
Copy link
Contributor

@hrw hrw commented Nov 10, 2015

Checked only on AArch64 so far.

@@ -405,8 +405,8 @@ BOOST_AUTO_TEST_CASE(Compare)
{
BOOST_CHECK_EQUAL( 0, Name("/A") .compare(Name("/A")));
BOOST_CHECK_EQUAL( 0, Name("/A") .compare(Name("/A")));
BOOST_CHECK_EQUAL(-1, Name("/A") .compare(Name("/B")));
BOOST_CHECK_EQUAL( 1, Name("/B") .compare(Name("/A")));
BOOST_CHECK_GT(-1, Name("/A") .compare(Name("/B")));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm are you sure? it should be either _GE(-1, ...) or _GT(0, ...), otherwise it'll break on x86{,_64}

Same thing for the other checks below.

@hrw
Copy link
Contributor Author

hrw commented Nov 10, 2015

Will work on it on Monday.

@hrw
Copy link
Contributor Author

hrw commented Nov 16, 2015

Those changes worked for me on both AArch64 and x86-64

@hrw
Copy link
Contributor Author

hrw commented Nov 19, 2015

ping?

@Pesa
Copy link
Member

Pesa commented Nov 19, 2015

The patch seems incomplete... there are other == 1 and == -1 checks that must be fixed.

@Pesa
Copy link
Member

Pesa commented Nov 19, 2015

Plus, all commits must go through http://gerrit.named-data.net/

@hrw
Copy link
Contributor Author

hrw commented Nov 20, 2015

I updated all entries which failed for me on AArch64 and made sure that they do not break x86-64 at same time. Nothing else required changing.

And about gerrit... Never used it so submitting patch will take some more time.

@hrw
Copy link
Contributor Author

hrw commented Nov 20, 2015

And it is hard to find "how to contribute" section on your website.

@cawka
Copy link
Member

cawka commented Nov 20, 2015

I created a gerrit change based on your pull request (http://gerrit.named-data.net/#/c/2595/). Should be merged after it passes all tests and any necessary fixes.

@Pesa
Copy link
Member

Pesa commented Nov 24, 2015

Fixed in 1ddc13d, thanks a lot @hrw. This PR can be closed now.

@cawka cawka closed this Nov 24, 2015
@hrw
Copy link
Contributor Author

hrw commented Nov 26, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants