[binutils-gdb] gdb/testsuite: fix typo in gdb.python/py-missing-objfile.exp

Simon Marchi simark@sourceware.org
Fri Jan 9 19:55:28 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0311e824af499a70e447cc75220b39f7a1c9d8f1

commit 0311e824af499a70e447cc75220b39f7a1c9d8f1
Author: Sébastien Darche <sdarche@efficios.com>
Date:   Tue Sep 30 14:54:28 2025 -0400

    gdb/testsuite: fix typo in gdb.python/py-missing-objfile.exp
    
    The py-missing-objfile.exp test attempts to load a core file with
    missing debug info and counts the number of times a python missing
    objfile handler is called.
    
    In one test case, the number of expected calls to the missing objfile
    handler is two, but the test case misleadingly says three. This commit
    fixes this typo.
    
    Change-Id: I421143ebed392227f14918ea529eb0e9cbd98dda
    Approved-By: Simon Marchi <simon.marchi@efficios.com>

Diff:
---
 gdb/testsuite/gdb.python/py-missing-objfile.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.python/py-missing-objfile.exp b/gdb/testsuite/gdb.python/py-missing-objfile.exp
index 2af02d815ce..bb747d69a1b 100644
--- a/gdb/testsuite/gdb.python/py-missing-objfile.exp
+++ b/gdb/testsuite/gdb.python/py-missing-objfile.exp
@@ -237,7 +237,7 @@ with_test_prefix "lib objfile missing, handler returns None" {
     # load the shared library during the memory-mapped file phase,
     # then again for the shared library loading.
     gdb_test "python print(handler_obj.call_count)" "^2" \
-	"check handler was called three times"
+	"check handler was called two times"
 }
 
 with_test_prefix "handler installs lib objfile" {


More information about the Gdb-cvs mailing list