-
Notifications
You must be signed in to change notification settings - Fork 22
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 failures on on Windows: editorconfig returned a nonzero exit code #28
Comments
@xuhdev I see this is on the test-windows branch. What is the purpose of this branch? I'd like to know what the end goal is. Both of the links you sent show as failures when I look at them -
I see the Would you please double-check and let me know if those are the correct builds to look at? Thanks! |
@cxw42 Because
Now it looks like the first link also failed one multiline test (which I did not notice before), but the second failed a lot of them. |
Thanks for the extra info. Is the test-windows branch just updating editorconfig-core-c to the latest tests? |
@cxw42 No, the master has the latest test code. |
@xuhdev Would you please assign this to me? Thanks! |
@cxw42 Done. Would like to be a developer of EditorConfig? I can add you in the Developer Team. |
@xuhdev I have a proposed fix at https://github.com/cxw42/editorconfig-core-test/tree/cxwtest . It is not ready for a PR yet. However, would you be willing to try it out with a few cores and see what you find?
In the C core and core tests, I had to change the way I also had to change the backslash escaping in the If you have any questions or comments, please let me know. Otherwise, I will clean up the repos in question and submit PRs (core-test first, then core-c). |
@cxw42 Sure. Could you send a WIP PR? We can look at the changes together there and it's probably easier. |
An example of the backslash problem - with cmake 3.14.5, on Cygwin, CMake generates the test differently for the C core than for the Vim plugin+core (!) (scroll right):
I am going to try generating the path string by concatenating strings with fixed ASCII values and see what happens. |
Fixes: - editorconfig#28 - The warning at https://ci.appveyor.com/project/xuhdev/editorconfig-core-c/builds/28235086/job/u9ebs7f3b9u3gowk#L1660 Major changes: - Always use add_test(NAME ... COMMAND ...) This is for consistency - add_test(NAME ... COMMAND ...) escapes differently than add_test(<name> <command>...). - Fix backslash escaping Now that we are using the add_test(NAME ... COMMAND ...) form, backslash escaping works differently. In my tests, backslashes are not collapsed in that form. - Specify `-C Debug` on the `ctest` command line for the sake of the Visual Studio generator
Apply changes in response to editorconfig/editorconfig-core-test#28
Fixes: - editorconfig#28 - The warning at https://ci.appveyor.com/project/xuhdev/editorconfig-core-c/builds/28235086/job/u9ebs7f3b9u3gowk#L1660 Major changes: - Always use add_test(NAME ... COMMAND ...): This is for consistency - add_test(NAME ... COMMAND ...) escapes differently than add_test(<name> <command>...). - Fix backslash escaping: Now that we are using the add_test(NAME ... COMMAND ...) form, backslash escaping works differently. In my tests, backslashes are not collapsed in that form. - Specify `-C Debug` on the `ctest` command line: This permits the Visual Studio generator to run tests.
Apply changes in response to editorconfig/editorconfig-core-test#28
Fixes: - editorconfig#28 - The warning at https://ci.appveyor.com/project/xuhdev/editorconfig-core-c/builds/28235086/job/u9ebs7f3b9u3gowk#L1660 Major changes: - Always use add_test(NAME ... COMMAND ...): This is for consistency - add_test(NAME ... COMMAND ...) escapes differently than add_test(<name> <command>...). - Fix backslash escaping: Now that we are using the add_test(NAME ... COMMAND ...) form, backslash escaping works differently. In my tests, backslashes are not collapsed in that form. - Specify `-C Debug` on the `ctest` command line: This permits the Visual Studio generator to run tests.
Apply changes in response to editorconfig/editorconfig-core-test#28
Fixes: - #28 - The warning at https://ci.appveyor.com/project/xuhdev/editorconfig-core-c/builds/28235086/job/u9ebs7f3b9u3gowk#L1660 Major changes: - Always use add_test(NAME ... COMMAND ...): This is for consistency - add_test(NAME ... COMMAND ...) escapes differently than add_test(<name> <command>...). - Fix backslash escaping: Now that we are using the add_test(NAME ... COMMAND ...) form, backslash escaping works differently. In my tests, backslashes are not collapsed in that form. - Specify `-C Debug` on the `ctest` command line: This permits the Visual Studio generator to run tests.
Fixed by 48610d4 |
Apply changes in response to editorconfig/editorconfig-core-test#28
Apply changes in response to editorconfig/editorconfig-core-test#28
After 3d439da, multiline tests start to fail.
Example:
Here shows two Windows CI tests on editorconfig-core-c, one with the test submodule right before the commit, and one right after the commit.
@cxw42 Could you look into this, please?
The text was updated successfully, but these errors were encountered: