1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Find a file
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
build Bug 423342 - MinGW builds fail with custom EFS 2015-01-12 15:03:10 -05:00
codan Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
core Bug 457374 - A 'using' declaration confuses Organize Includes 2015-01-13 12:07:47 -08:00
cross Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
debug Cosmetics. 2015-01-08 16:14:17 -08:00
doc Bug 449604: Comment/Uncomment for C++ editor not documented correctly 2015-01-08 08:59:11 -05:00
dsf Bug 455094 - StepIntoSelection cleanup after review 2015-01-07 11:01:56 -05:00
dsf-gdb debug tests: Introduce line "tags" to avoid hardcoding line numbers 2015-01-15 08:44:42 -05:00
jtag Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
launch/org.eclipse.cdt.launch Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
llvm Cosmetics. 2015-01-06 21:02:42 -08:00
lrparser Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
memory Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
p2 Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
qt Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
releng Bug 445128 - Copy processing-instruction in xsl processing 2015-01-13 20:19:38 -05:00
remote Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
testsrunner Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
upc Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
util Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
visualizer Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
windows Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
xlc Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
.gitignore Ignore NFS-created files. 2012-11-08 13:34:54 -08:00
pom.xml Use tycho-extras-version when needed 2015-01-14 15:41:45 -05:00