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

test: skip test_lookup_ipv6_hint on FreeBSD #2716

Closed
wants to merge 1 commit into from

Conversation

Trott
Copy link
Member

@Trott Trott commented Sep 7, 2015

FreeBSD does not support the V4MAPPED flag so skip the test that uses it.

I hacked the Makefile to run this on CI to confirm that it had been failing and that this change would cause it to pass. There are other failures, but they are for other tests. https://ci.nodejs.org/job/node-test-commit-other/518/

@Trott
Copy link
Member Author

Trott commented Sep 7, 2015

/cc @jbergstroem

@Trott
Copy link
Member Author

Trott commented Sep 7, 2015

Fixes 2 out of 8 systems listed for the test at #2468

@Trott
Copy link
Member Author

Trott commented Sep 7, 2015

CI: https://ci.nodejs.org/job/node-test-pull-request/259/

(Kind of pointless because the tests in test/internet don't run in CI yet, but you know, just in case or something.)

@jbergstroem
Copy link
Member

LGTM

FreeBSD does not support the V4MAPPED flag so skip the test that uses
it.
@mscdex mscdex added dns Issues and PRs related to the dns subsystem. test Issues and PRs related to the tests. freebsd Issues and PRs related to the FreeBSD platform. labels Sep 7, 2015
// FreeBSD does not support V4MAPPED flag.
if (process.platform === 'freebsd') {
console.log(
'1..0 # Skipped: test_lookup_ipv6_hint is disabled on FreeBSD.'
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this message be changed to FreeBSD does not support V4MAPPED flag.?

Copy link
Member

Choose a reason for hiding this comment

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

@thefourtheye if so, perhaps squeeze both test_lookup_ipv6_hint and v4mapped in there? wouldn't tap just report internet/test-dns.js and not the actual test name.

Copy link
Contributor

Choose a reason for hiding this comment

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

@jbergstroem Unfortunately, nope. It will not know the specific test :( I thought that if we specified the actual reason, it would be better to understand why it is skipped.

Now there is another interesting thing here. If we skip more than one tests in a single file, then there will be two skip TAP lines. I wonder how the output will be displayed.

Copy link
Member

Choose a reason for hiding this comment

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

@thefourtheye yeah, not too much to do about "double skipping" unless we're keen to start rewriting larger parts of our tests. Long term we should look at replacing the current runner with something build on top of node-tap or similar. There's an issue about this somewhere..

anyway, moving forward; I'm ok with either message.

Copy link
Contributor

Choose a reason for hiding this comment

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

Long term we should look at replacing the current runner with something build on top of node-tap or similar

cheers

@thefourtheye
Copy link
Contributor

LGTM

@Trott
Copy link
Member Author

Trott commented Sep 7, 2015

I wonder if I should rewrite it so that it checks the error on FreeBSD rather than skips the test? That has the benefits of:

  • Avoiding the tap issues described in other comments
  • Guaranteeing that someone will have to remove the FreeBSD exception in the test if FreeBSD changes and supports V4MAPPED

@Trott
Copy link
Member Author

Trott commented Sep 7, 2015

How about we do this instead? #2724

@Trott
Copy link
Member Author

Trott commented Sep 7, 2015

Closing in favor of #2724

@Trott Trott closed this Sep 7, 2015
@Trott Trott deleted the test-dns-freebsd branch January 9, 2022 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dns Issues and PRs related to the dns subsystem. freebsd Issues and PRs related to the FreeBSD platform. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants