File tree Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -519,7 +519,8 @@ def run_one_test(test_data: dict[str, any]) -> None:
519519
520520 @property
521521 def output_refiners (self ) -> list [OutputRefiner ]:
522- result = super ().output_refiners + [ReplacePath (self .working_dir ())]
522+ result = super ().output_refiners
523+ result .append (Substitute (self .working_dir (), "<working-dir>" ))
523524 if self .test_env .get ("canonicalize_backslashes" , False ):
524525 result .append (Substitute ("\\ " , "/" ))
525526 return result
Original file line number Diff line number Diff line change 11With target in project file
22===========================
33
4- <gnatcheck_worker_exe> -Pwith_target.gpr --target=x86_64-linux -d --files-from=/gnatcheck/gnatcheck-files1.TMP --rules-from=/gnatcheck/gnatcheck-rules0.TMP
4+ <gnatcheck_worker_exe> -Pwith_target.gpr --target=x86_64-linux -d --files-from=<working-dir> /gnatcheck/gnatcheck-files1.TMP --rules-from=<working-dir> /gnatcheck/gnatcheck-rules0.TMP
55main.adb:3:04: goto statement
66
77With target in config file
88==========================
99
10- <gnatcheck_worker_exe> -Pwithout_target.gpr --target=x86_64-linux -d --files-from=/gnatcheck/gnatcheck-files1.TMP --rules-from=/gnatcheck/gnatcheck-rules0.TMP
10+ <gnatcheck_worker_exe> -Pwithout_target.gpr --target=x86_64-linux -d --files-from=<working-dir> /gnatcheck/gnatcheck-files1.TMP --rules-from=<working-dir> /gnatcheck/gnatcheck-rules0.TMP
1111main.adb:3:04: goto statement
1212
1313With target through command-line
1414================================
1515
16- <gnatcheck_worker_exe> -Pwithout_target.gpr --target=x86_64-linux -d --files-from=/gnatcheck/gnatcheck-files1.TMP --rules-from=/gnatcheck/gnatcheck-rules0.TMP
16+ <gnatcheck_worker_exe> -Pwithout_target.gpr --target=x86_64-linux -d --files-from=<working-dir> /gnatcheck/gnatcheck-files1.TMP --rules-from=<working-dir> /gnatcheck/gnatcheck-rules0.TMP
1717main.adb:3:04: goto statement
1818
1919Without any target specified
2020============================
2121
22- <gnatcheck_worker_exe> -Pwithout_target.gpr --target=x86_64-linux -d --files-from=/gnatcheck/gnatcheck-files1.TMP --rules-from=/gnatcheck/gnatcheck-rules0.TMP
22+ <gnatcheck_worker_exe> -Pwithout_target.gpr --target=x86_64-linux -d --files-from=<working-dir> /gnatcheck/gnatcheck-files1.TMP --rules-from=<working-dir> /gnatcheck/gnatcheck-rules0.TMP
2323main.adb:3:04: goto statement
Original file line number Diff line number Diff line change @@ -32,6 +32,6 @@ Total gnatcheck failures: 1
3232
33336. Gnatcheck internal errors
3434
35- /test.adb:2:04: error: internal issue at checker.lkql:4:22: test.adb:2:4-2:28: dereferencing a null access
35+ <working-dir> /test.adb:2:04: error: internal issue at checker.lkql:4:22: test.adb:2:4-2:28: dereferencing a null access
3636
3737>>>program returned status code 2
Original file line number Diff line number Diff line change 1- prj.gpr:2:26: error: "/invalid_source_dirs" is not a valid directory
1+ prj.gpr:2:26: error: "<working-dir> /invalid_source_dirs" is not a valid directory
22try "gnatcheck --help" for more information.
33>>>program returned status code 2
Original file line number Diff line number Diff line change 1- prj.gpr:2:26: error: "\invalid_source_dirs" is not a valid directory
1+ prj.gpr:2:26: error: "<working-dir> \invalid_source_dirs" is not a valid directory
22try "gnatcheck --help" for more information.
33>>>program returned status code 2
You can’t perform that action at this time.
0 commit comments