runnables and unittest, filter out the "-run" option

This commit is contained in:
Basile Burg 2016-10-27 03:23:05 +02:00
parent 72b1833f96
commit ce6874d05d
No known key found for this signature in database
GPG Key ID: 1868039F415CB8CF
1 changed files with 6 additions and 1 deletions

View File

@ -669,6 +669,9 @@ begin
// would break location detection
else if (sw.length > 2) and (sw[1..3] = '-of') then
continue
// useless
else if sw = '-run' then
continue
else
lst.Add(sw);
end;
@ -2563,7 +2566,9 @@ begin
fMsgs.message('the option "-c" is not be handled when a module is tested',
fDoc, amcEdit, amkWarn);
end;
end;
end
else if lst[i] = '-run' then
lst.Delete(i);
end;
end;