Re: [commit 2/2] testsuite: code_elim.exp: Fix false FAIL

Yao Qi
2012-06-04T02:16:14Z

On 06/04/2012 01:17 AM, Jan Kratochvil wrote:
> with_test_prefix "order1" {
> + gdb_test "add-symbol-file ${binfile1} 0x100000 -s .bss 0x120000" \
> + "Reading symbols from .*${testfile1}\\.\\.\\.done\\." \
> + "add-symbol-file ${testfile1} 0x100000" \
> + "add symbol table from file \".*${testfile1}\" at.*\\(y or n\\) " \
> + "y"
> +
> + gdb_test "add-symbol-file ${binfile2} 0x200000 -s .data 0x210000 -s .bss 0x220000" \
> + "Reading symbols from .*${testfile2}\\.\\.\\.done\\." \
> + "add-symbol-file ${testfile2} 0x200000" \
> + "add symbol table from file \".*${testfile2}\" at.*\\(y or n\\) " \
> + "y"
Hi Jan,
We should first check whether '.bss' exists (by "maint info sections")
and then run this part conditionally. We don't have '.bss' on some
ports, such as tic6x-elf.

--
Yao (é½å°§)