summaryrefslogtreecommitdiff
path: root/tests/examples
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2018-07-03 19:20:56 +0200
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-08-22 19:38:41 +0900
commitf4e51cf1042307cdd45ee34c761424e7848ccc26 (patch)
treea30506dd968ed147842e14d36db3ed94284db262 /tests/examples
parentff52ae18cf779f109081c33937b8f123780b69b5 (diff)
downloadbuildstream-f4e51cf1042307cdd45ee34c761424e7848ccc26.tar.gz
Don't strip pathname from debug symbol files
When GDB looks for debug symbols it looks for the full path of the file inside the configured debug-file-directory. For example, if the debug-file-directory is set to a default of /usr/lib/debug, and you are debugging /usr/bin/python3, GDB will look for its debug symbols at this location: /usr/lib/debug/usr/bin/python3. BuildStream has been putting all debug files inside /usr/lib/debug under their $(basename), so in the above example GDB would fail to find any debug symbols for /usr/bin/python3 because they would be in the incorrect locatoin of /usr/lib/debug/python3.
Diffstat (limited to 'tests/examples')
-rw-r--r--tests/examples/autotools.py4
-rw-r--r--tests/examples/developing.py4
-rw-r--r--tests/examples/flatpak-autotools.py6
3 files changed, 10 insertions, 4 deletions
diff --git a/tests/examples/autotools.py b/tests/examples/autotools.py
index c774776fb..37f6ed0e3 100644
--- a/tests/examples/autotools.py
+++ b/tests/examples/autotools.py
@@ -28,7 +28,9 @@ def test_autotools_build(cli, tmpdir, datafiles):
assert_contains(checkout, ['/usr', '/usr/lib', '/usr/bin',
'/usr/share', '/usr/lib/debug',
- '/usr/lib/debug/hello', '/usr/bin/hello',
+ '/usr/lib/debug/usr', '/usr/lib/debug/usr/bin',
+ '/usr/lib/debug/usr/bin/hello',
+ '/usr/bin/hello',
'/usr/share/doc', '/usr/share/doc/amhello',
'/usr/share/doc/amhello/README'])
diff --git a/tests/examples/developing.py b/tests/examples/developing.py
index 4c488d962..bca6ac61d 100644
--- a/tests/examples/developing.py
+++ b/tests/examples/developing.py
@@ -29,7 +29,9 @@ def test_autotools_build(cli, tmpdir, datafiles):
assert_contains(checkout, ['/usr', '/usr/lib', '/usr/bin',
'/usr/share', '/usr/lib/debug',
- '/usr/lib/debug/hello', '/usr/bin/hello'])
+ '/usr/lib/debug/usr', '/usr/lib/debug/usr/bin',
+ '/usr/lib/debug/usr/bin/hello',
+ '/usr/bin/hello'])
# Test the unmodified hello command works as expected.
diff --git a/tests/examples/flatpak-autotools.py b/tests/examples/flatpak-autotools.py
index 3965725c7..2d02755fc 100644
--- a/tests/examples/flatpak-autotools.py
+++ b/tests/examples/flatpak-autotools.py
@@ -47,8 +47,10 @@ def test_autotools_build(cli, tmpdir, datafiles):
assert_contains(checkout, ['/usr', '/usr/lib', '/usr/bin',
'/usr/share', '/usr/lib/debug',
- '/usr/lib/debug/hello', '/usr/bin/hello',
- '/usr/share/doc', '/usr/share/doc/amhello',
+ '/usr/lib/debug/usr', '/usr/lib/debug/usr/bin',
+ '/usr/lib/debug/usr/bin/hello',
+ '/usr/bin/hello', '/usr/share/doc',
+ '/usr/share/doc/amhello',
'/usr/share/doc/amhello/README'])