-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'topic/windows_wrong_runtime' into 'master'
Fix 'wrong_runtime' test for Windows systems Closes #187 See merge request eng/libadalang/langkit-query-language!174
- Loading branch information
Showing
8 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
6 changes: 6 additions & 0 deletions
6
testsuite/tests/gnatcheck_errors/wrong_runtime/windows/main.adb
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,6 @@ | ||
with Ada.Text_IO; use Ada.Text_IO; | ||
|
||
procedure Main is | ||
begin | ||
Put_Line ("Hello"); | ||
end Main; |
2 changes: 2 additions & 0 deletions
2
testsuite/tests/gnatcheck_errors/wrong_runtime/windows/prj.gpr
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 @@ | ||
project Prj is | ||
end Prj; |
5 changes: 5 additions & 0 deletions
5
testsuite/tests/gnatcheck_errors/wrong_runtime/windows/test.out
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,5 @@ | ||
testsuite_driver: No output file generated by gnatcheck | ||
gnatcheck: kb: warning: can't find a toolchain for the following configuration: language 'Ada', target 'x86_64-windows', runtime 'unknown' | ||
gnatcheck: "prj.gpr" processing failed | ||
try "gnatcheck --help" for more information. | ||
>>>program returned status code 2 |
14 changes: 14 additions & 0 deletions
14
testsuite/tests/gnatcheck_errors/wrong_runtime/windows/test.yaml
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,14 @@ | ||
# Expected behavior here is that runtime files for Ada.Text_IO are not found, | ||
# because libgpr doesn't warn when a runtime doesn't exist, but no runtime | ||
# files will be found | ||
|
||
driver: gnatcheck | ||
project: prj.gpr | ||
rules: | ||
- +Rrecursive_subprograms | ||
extra_args: | ||
- --RTS=unknown | ||
control: | ||
- [SKIP, | ||
"os != 'windows'", | ||
"Disable this test on non-Windows systems due to target formatting"] |