Skip to content

Commit 82bbb8d

Browse files
committed
V504-020 Fixing menu name defined by custom target
Change-Id: I5ebce31647212d4bd54e0f274183ee1eaee3f76b
1 parent 8842d7c commit 82bbb8d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

builder/src/builder_facility_module.adb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,8 @@ package body Builder_Facility_Module is
719719
Action_Name => N & (-" Number") & J'Img,
720720
Multiple_Mains => True,
721721
Button_Label => Mains.List (J).Tuple (2).Str,
722-
Menu_Name => Mains.List (J).Tuple (1).Str,
722+
Menu_Name =>
723+
N & ' ' & Mains.List (J).Tuple (1).Str,
723724
Show_Project_In_Menu => Show_Project_In_Menu,
724725
For_Learning => For_Learning);
725726
end if;

testsuite/tests/T121-017.run_in_exec_dir_aggregated_project/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class RunMainDialog(Dialog):
1111

1212
def open_and_yield(self):
13-
yield self._open_and_yield("/Build/Run/P1/main1")
13+
yield self._open_and_yield("/Build/Run/P1/Run Main main1")
1414
self.dialog = get_window_by_title("Run Main")
1515
yield wait_tasks()
1616

@@ -40,7 +40,7 @@ def driver():
4040
exec_path = text.splitlines()[0]
4141
work_dir = text.splitlines()[1]
4242
exec_name = exec_path[len(work_dir)+1:]
43-
gps_assert(exec_name.startswith('main1'),
43+
gps_assert(exec_name.startswith("main1"),
4444
True,
4545
"Wrong name of the executable '{}', path '{}', cwd '{}'".format(
4646
exec_name, exec_path, work_dir))

0 commit comments

Comments
 (0)