-
Notifications
You must be signed in to change notification settings - Fork 35
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
Fix 28 gcc output parse error #54
Fix 28 gcc output parse error #54
Conversation
… no error/warning count information is available on a failed compilation (due to parsing problems), then an error label is still shown.
…e use a modal) and move gcc error modal html markup inside the show-if-supported div
…dated regex - the test should have expected 2 errors actually, but because of the old regex the expected output was incorrect and the test conformed to the incorrect output. So fixing the regex required fixing the test too. Also, updated the test to use program.c in the error text.
@scowalt Can you review this? Especially the change in the parser regex and the parser unit tests. |
Fix 28 gcc output parse error
These changes look fine to me. I'm unsure of why 'error' is the expected error type in line 61 of the testing file, but everything else looks good. |
Because the error text is "undefined reference", which should be an error. |
Sanity check: Is the UI also more reasonable/obvious for link errors (e.g. errors that int f(); or worse, let's choose a function that's part of C stdio but give it a int puts(); Another example... (if -pthread gcc option is not defined...) #include <pthread.h> Another example = empty source file! Another example: Causing errors in an include file #define int abc Best, On 11/29/14 2:37 PM, Scott Walters wrote:
|
Fix #28:
The test expected one error. However, it should have expected two errors, but the parser returned only one because the gcc output string used a file name other than
program.c
. If the test were updated to useprogram.c
, the test would have broken. Now, after updating the parser regex to take into account file names other thanprogram.c
, the test broke. So, I fixed the test to expect two errors and modified the test input to useprogram.c
anyway.index.html
cleanup