-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show line when logging warnings/errors and add reg test. Fixes #2.
- Loading branch information
1 parent
c7e86c1
commit b910575
Showing
5 changed files
with
77 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
mod t1_simple; | ||
mod t2_prereq; | ||
mod t3_invalid_line_type; |
2 changes: 2 additions & 0 deletions
2
tests/scenarios/simple_makefiles/t3_invalid_line_type/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
a: | ||
echo "bad indentation on this line is intentional" > a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
crate::system_test_cases!( | ||
{ | ||
args: &[], | ||
expected_stdout: "", | ||
expected_stderr: "make: ERROR [Makefile] | Invalid line type.\n |\n2 | echo \"bad indentation on this line is intentional\" > a\n | \n\n", | ||
expected_files: &[], | ||
}, | ||
); |