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

Many tests cases erroneously reported as FAILED #67

Closed
jfilo opened this issue Jun 23, 2017 · 10 comments
Closed

Many tests cases erroneously reported as FAILED #67

jfilo opened this issue Jun 23, 2017 · 10 comments
Labels

Comments

@jfilo
Copy link
Contributor

jfilo commented Jun 23, 2017

The following tests are reported as failed even though they really pass:

2665-2680
2684-2754
2758-2828
2834-2904
2911-2980

It looks like the generated 'testsuite' script is adding an extra newline to the Matlab output,
causing the script to think the test failed.

Editing the generated testsuite with the following sed script fixes the problem and all the above tests pass.

sed -i '/^echo >>"\$at_stdout"; \$as_echo "PASSED"/s/^echo/echo -n/' testsuite

Maybe there is an issue with my version of autoconf (version 2.69 on a RHEL 7 system)?

@tbeu
Copy link
Owner

tbeu commented Jun 23, 2017

Thanks for reporting. As these tests are all the write tests, does it fail in the writing check or in the subsequent reading check?

@jfilo
Copy link
Contributor Author

jfilo commented Jun 23, 2017 via email

@tbeu
Copy link
Owner

tbeu commented Jun 25, 2017

Do you also see the error when you use the Ubuntu generatd testsuite from the latest matio-1.5.10.tar.gz?

@tbeu
Copy link
Owner

tbeu commented Jun 26, 2017

I am aware of the MATLAB part of the write tests success from #31 (comment) when @papadop reorganized the test suite.

@jfilo
Copy link
Contributor Author

jfilo commented Jun 26, 2017

I just spot checked a few tests using testsuite from matio-1.5.10.tar.gz, and they're failing the same way. That version of testsuite still has what appears to be an unnecessary newline added to the Matlab output. For example, test #2664, at testsuite:92564. If you remove the echo >> "$at_stdout"; at the beginning of the line, the test passes.

jfilo added a commit to jfilo/matio that referenced this issue Jun 27, 2017
@jfilo
Copy link
Contributor Author

jfilo commented Jun 27, 2017

The commit in the above comment works around the problem by adding a newline to the expected output (i.e. [PASSED]) in the Matlab read portion of each of the write tests. There is a subsequent commit that removes a stray newline that was introduced in that commit. It seems like there has to be a better way to do this though.

@tbeu
Copy link
Owner

tbeu commented Jun 27, 2017

Thanks. I'll consider it later.

tbeu pushed a commit that referenced this issue Aug 4, 2017
@tbeu
Copy link
Owner

tbeu commented Aug 4, 2017

Thanks. Fix applied.

There is a subsequent commit that removes a stray newline that was introduced in that commit. It seems like there has to be a better way to do this though.

You can do have git commit --ammend and the git push --force to your branch,

@tbeu tbeu closed this as completed Aug 4, 2017
@tbeu
Copy link
Owner

tbeu commented Oct 15, 2017

@jfilo I'd like to mention you in the README.md and README files acknowledgements section for you valuable contribution. Is is alright for you? Thanky you again!

@jfilo
Copy link
Contributor Author

jfilo commented Oct 16, 2017 via email

@tbeu tbeu added the bug label Nov 8, 2017
papadop pushed a commit to papadop/matio that referenced this issue Nov 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants