Skip to content

Commit

Permalink
Merge branch 'topic/windows_wrong_runtime' into 'master'
Browse files Browse the repository at this point in the history
Fix 'wrong_runtime' test for Windows systems

Closes #187

See merge request eng/libadalang/langkit-query-language!174
  • Loading branch information
HugoGGuerrier committed Feb 15, 2024
2 parents 1f10b5d + 075250e commit 7ae1236
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ rules:
- +Rrecursive_subprograms
extra_args:
- --RTS=unknown
control:
- [SKIP,
"os == 'windows'",
"Disable this test on Windows systems due to target formatting"]
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
project Prj is
end Prj;
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 testsuite/tests/gnatcheck_errors/wrong_runtime/windows/test.yaml
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"]

0 comments on commit 7ae1236

Please sign in to comment.