Explorar o código

tests: set source directory for gdb

Helps interactive gdb calls find the source code.

Gbp-Dch: Ignore
David Kalnischkies %!s(int64=10) %!d(string=hai) anos
pai
achega
f036d9bb53
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/integration/framework

+ 1 - 1
test/integration/framework

@@ -216,7 +216,7 @@ gdb() {
 	if [ "${CMD##*/}" = "$CMD" ]; then
 	if [ "${CMD##*/}" = "$CMD" ]; then
 		CMD="${BUILDDIRECTORY}/${CMD}"
 		CMD="${BUILDDIRECTORY}/${CMD}"
 	fi
 	fi
-	runapt command gdb --quiet -ex run "$CMD" --args "$CMD" "$@"
+	runapt command gdb --quiet -ex "directory '$SOURCEDIRECTORY'" -ex run "$CMD" --args "$CMD" "$@"
 }
 }
 lastmodification() {
 lastmodification() {
 	date -u -d "@$(stat -c '%Y' "${TMPWORKINGDIRECTORY}/$1")" -R
 	date -u -d "@$(stat -c '%Y' "${TMPWORKINGDIRECTORY}/$1")" -R