mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Fix version range check in SourceLookupTest
Change-Id: Ief38312449c67073c6a6503f27807b455fa4066c Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
This commit is contained in:
parent
3fb0862d7c
commit
25023542e8
1 changed files with 2 additions and 4 deletions
|
@ -140,14 +140,12 @@ public class SourceLookupTest extends BaseParametrizedTestCase {
|
|||
|
||||
/**
|
||||
* For version of GDB <= 7.4 we need to use the strict dwarf2 flags. See
|
||||
* comment in Makefile on OLDDWARFFLAGS. Also see
|
||||
* {@link SourceLookupTest_6_6#setExeNames()} which sets up the old exes and
|
||||
* {@link SourceLookupTest_7_5#setExeNames()} which restores them.
|
||||
* comment in Makefile on OLDDWARFFLAGS.
|
||||
*/
|
||||
protected void setExeNames() {
|
||||
String gdbVersion = getGdbVersion();
|
||||
// has to be strictly lower
|
||||
boolean isLower = LaunchUtils.compareVersions("7.4", gdbVersion) > 0;
|
||||
boolean isLower = LaunchUtils.compareVersions("7.5", gdbVersion) > 0;
|
||||
if (isLower) {
|
||||
EXEC_AC_NAME = "SourceLookupDwarf2AC.exe"; //$NON-NLS-1$
|
||||
EXEC_AN_NAME = "SourceLookupDwarf2AN.exe"; //$NON-NLS-1$
|
||||
|
|
Loading…
Add table
Reference in a new issue