[gdb/testsuite] Fix testing build_executable result