1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
cdt/dsf-gdb
Simon Marchi d0e93b665b debug tests: Introduce line "tags" to avoid hardcoding line numbers
Hardcoding line numbers in tests make it a pain to modify the test sources.
The approach adopted in the gdb testsuite is to look for a specific string
in the source file and return the line number where it is found. I made a
similar system for the CDT debug tests.

I dubbed this system breakpoint tags, a tag being the string we look for in
the source file.

I modified the MIRunControlTest as an example, as well as GDBProcessesTest
and MIRegistersTest because they are re-using the same breakpoints.

SOURCE_PATH and EXEC_PATH were duplicated in many test cases, so I factored
them in BaseTestCase.

Change-Id: Id1e64b2064914005ab1d87e16704866aa1c8b9ec
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/36872
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2015-01-15 08:44:42 -05:00
..
org.eclipse.cdt.dsf.gdb Bug 455408 - Improve GDB label in the debug view 2015-01-07 15:03:35 -05:00
org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
org.eclipse.cdt.dsf.gdb.tests Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
org.eclipse.cdt.dsf.gdb.ui Bug 455094 - StepIntoSelection cleanup after review 2015-01-07 11:01:56 -05:00
org.eclipse.cdt.examples.dsf.gdb Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
org.eclipse.cdt.gnu.dsf-feature Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
org.eclipse.cdt.gnu.dsf.source-feature Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
org.eclipse.cdt.gnu.multicorevisualizer-feature Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
org.eclipse.cdt.tests.dsf.gdb debug tests: Introduce line "tags" to avoid hardcoding line numbers 2015-01-15 08:44:42 -05:00