mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Mirror of https://github.com/eclipse-cdt/cdt
![]() 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> |
||
---|---|---|
build | ||
codan | ||
core | ||
cross | ||
debug | ||
doc | ||
dsf | ||
dsf-gdb | ||
jtag | ||
launch/org.eclipse.cdt.launch | ||
llvm | ||
lrparser | ||
memory | ||
p2 | ||
qt | ||
releng | ||
remote | ||
testsrunner | ||
upc | ||
util | ||
visualizer | ||
windows | ||
xlc | ||
.gitignore | ||
pom.xml |