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/codegen: wrong test cases not detected #25452
Comments
Change https://golang.org/cl/113736 mentions this issue: |
cc @randall77 @rasky |
The test is ineffective because there's a space between the
|
Can we trim whitespace? I can very easily see myself making that mistake—and am wondering now whether I already have. |
Technically, it should be a syntax error, but since parsing is made with a regexp, the regexp simply doesn't match and there's no obvious way to tell a comment line in English from a command line with a syntax error -- both don't contain a regexp match. Stripping whitespace is a workaround for this specific bug, but any other syntax error can possibly cause the same problem. I've sent a CL to strip whitespaces. |
Change https://golang.org/cl/113835 mentions this issue: |
Thank you. @rasky |
The following test case in memcombine.go is wrong, the MOVH is never generated, and still two MOVB remain there. But the codegen test framework does not detect that failure.
The failure can only be detected in the below form
The text was updated successfully, but these errors were encountered: