1
1
mirror of https://github.com/rui314/mold.git synced 2024-10-04 08:37:28 +03:00

Use -batch mode for gdb tests.

Use the mode, otherwise one can be asked things like:
Quit anyway? (y or n)

which make the test stuck.

Signed-off-by: Martin Liska <mliska@suse.cz>
This commit is contained in:
Martin Liska 2022-04-21 10:15:18 +02:00
parent f12a9bb5ff
commit b3e0955d88
3 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ readelf -WS $t/exe | fgrep -q .gdb_index
$QEMU $t/exe | grep -q 'Hello world'
DEBUGINFOD_URLS= gdb $t/exe -ex 'b main' -ex r -ex 'b trap' \
DEBUGINFOD_URLS= gdb $t/exe -batch -ex 'b main' -ex r -ex 'b trap' \
-ex c -ex bt -ex quit >& $t/log
grep -Pq 'hello \(\) at .*<stdin>:7' $t/log

View File

@ -49,7 +49,7 @@ readelf -WS $t/exe | fgrep -q .gdb_index
$QEMU $t/exe | grep -q 'Hello world'
DEBUGINFOD_URLS= gdb $t/exe -ex 'b main' -ex r -ex 'b trap' \
DEBUGINFOD_URLS= gdb $t/exe -batch -ex 'b main' -ex r -ex 'b trap' \
-ex c -ex bt -ex quit >& $t/log
grep -Pq 'hello \(\) at .*<stdin>:7' $t/log

View File

@ -49,7 +49,7 @@ readelf -WS $t/exe | fgrep -q .gdb_index
$QEMU $t/exe | grep -q 'Hello world'
DEBUGINFOD_URLS= gdb $t/exe -ex 'b main' -ex r -ex 'b trap' \
DEBUGINFOD_URLS= gdb $t/exe -batch -ex 'b main' -ex r -ex 'b trap' \
-ex c -ex bt -ex quit >& $t/log
grep -Pq 'hello \(\) at .*<stdin>:7' $t/log