Skip to content

Expectations of empty-command-newline #3 are unmeetable (was: Tests XPASS on master) #623

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

Closed
danielshahaf opened this issue Jul 7, 2019 · 4 comments

Comments

@danielshahaf
Copy link
Member

make test is currently failing due to an XPASS:

# empty-command-newline
1..4
ok 1 - [1,1] «:»
ok 2 - [2,2] «;»
ok 3 - [3,3] «↵» - # TODO "issue #616"
ok 4 - cardinality check

We should change the test file so it either is expected to pass and passes, or is expected to fail and fails.

@phy1729 Were you working on this? What's the correct fix here?

@phy1729
Copy link
Member

phy1729 commented Jul 7, 2019

That test has been failing since added a few weeks ago. I assumed you were working in the area.

Now that I look at it, shouldn't the third point be '3 3 commandseparator "issue #616"' # \n rather than unknown-token (i.e. expect the correct result)?

@danielshahaf
Copy link
Member Author

danielshahaf commented Jul 7, 2019 via email

danielshahaf added a commit that referenced this issue Jul 7, 2019
The test point is XPASSing, which makes CI red.  As a duct tape measure to turn
CI green again, update the test expectations to make it XFAIL.  The hacky part
is that the expectation set by this commit will never be met; the test point
will never XPASS now until its expectations are changed again.

Issue #623 remains open to track setting the test expectation to the correct
value (i.e., make the test XFAIL in a manner that _will_ XPASS if the bug is
fixed; in other words, pay off the technical debt created by this commit).

Issue #616 remains open to fix the actual bug.
@danielshahaf
Copy link
Member Author

I've added a duct tape fix to the "CI is red" problem and am repurposing this issue to track implementing a proper fix. See the commit message of ab4b6f5 for details.

@danielshahaf danielshahaf changed the title Tests XPASS on master Expectations of empty-command-newline #3 are unmeetable (was: Tests XPASS on master) Jul 7, 2019
@danielshahaf
Copy link
Member Author

Fixed by 8e78e9d.

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

No branches or pull requests

2 participants