]> git.saurik.com Git - apt.git/blobdiff - test/integration/framework
tests: set source directory for gdb
[apt.git] / test / integration / framework
index 8a95d79bbe1e013c2e3cec31a71238aa219d39c5..8d124858be3daab8a29b5c347eebf4730888063f 100644 (file)
@@ -216,7 +216,7 @@ gdb() {
        if [ "${CMD##*/}" = "$CMD" ]; then
                CMD="${BUILDDIRECTORY}/${CMD}"
        fi
-       runapt command gdb --quiet -ex run "$CMD" --args "$CMD" "$@"
+       runapt command gdb --quiet -ex "directory '$SOURCEDIRECTORY'" -ex run "$CMD" --args "$CMD" "$@"
 }
 lastmodification() {
        date -u -d "@$(stat -c '%Y' "${TMPWORKINGDIRECTORY}/$1")" -R