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:
parent
f12a9bb5ff
commit
b3e0955d88
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user