]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite: avoid pointer values in test names
authorAndrew Burgess <aburgess@redhat.com>
Fri, 21 Nov 2025 10:58:28 +0000 (10:58 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Fri, 21 Nov 2025 11:00:59 +0000 (11:00 +0000)
A test added in:

  commit 91eee81d23537366bb6072c66f662ab46d88380a
  Date:   Tue Jan 21 17:22:04 2025 +0000

      gdb: include NT_I386_TLS note in generated core files

includes a pointer value in the test name.  The value changes from run
to run making it harder to compare test results.  Fix this by giving
the test an actual name.

There's no change to what is being tested with the commit.

gdb/testsuite/gdb.arch/i386-tls-regs.exp

index 378a8e85f0291764ac8d87ceeb07e154532dd8eb..289433c4d430a2def7cdbff5736e9fc4f7f125f7 100644 (file)
@@ -87,7 +87,8 @@ proc_with_prefix test_tls_reg_availability {} {
 
        set new_val_str "{$val0, $val1, $val2, $val3}"
 
-       gdb_test_no_output "set \$i386_tls_gdt_1 = $new_val_str"
+       gdb_test_no_output "set \$i386_tls_gdt_1 = $new_val_str" \
+           "set value of \$i386_tls_gdt_1 register"
        set re [string_to_regexp $new_val_str]
        gdb_test "print /x \$i386_tls_gdt_1" " = $re"
     }