diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-05-10 12:43:06 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-05-10 12:43:07 -0400 |
commit | 0709cf686d42d00066ead084ceef1fbfd44ca558 (patch) | |
tree | a9c74e0d0154ba4c8df6bf39eb95f020a8f69870 /gdb/testsuite/gdb.arch | |
parent | 31aceaef1cba910c84b81c78064d226fd10d8976 (diff) | |
download | gdb-0709cf686d42d00066ead084ceef1fbfd44ca558.zip gdb-0709cf686d42d00066ead084ceef1fbfd44ca558.tar.gz gdb-0709cf686d42d00066ead084ceef1fbfd44ca558.tar.bz2 |
gdb/testsuite: use proc parameters in gdb.arch/amd64-osabi.exp
This test has a little oversight: the test procedure doesn't actually
use its parameters, the commands and expected patterns are hard-coded,
so we always test with i386:x86-64, instead of with the three arches.
Fix that.
gdb/testsuite/ChangeLog:
* gdb.arch/amd64-osabi.exp (test_osabi_none): Use the
parameters.
Change-Id: Iee2c32963d09e502ae791d5df2b6c04a1f49a57a
Diffstat (limited to 'gdb/testsuite/gdb.arch')
-rw-r--r-- | gdb/testsuite/gdb.arch/amd64-osabi.exp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.arch/amd64-osabi.exp b/gdb/testsuite/gdb.arch/amd64-osabi.exp index 0c43589..151fa35 100644 --- a/gdb/testsuite/gdb.arch/amd64-osabi.exp +++ b/gdb/testsuite/gdb.arch/amd64-osabi.exp @@ -24,10 +24,10 @@ if { ![istarget x86_64-*-* ] } { proc test_osabi_none { arch void_ptr_size long_double_size } { clean_restart - gdb_test "set architecture i386:x86-64" "The target architecture is set to \"i386:x86-64\"\\." + gdb_test "set architecture $arch" "The target architecture is set to \"$arch\"\\." gdb_test_no_output "set osabi none" "set osabi none" - gdb_test "print sizeof (void*)" " = 8" - gdb_test "print sizeof (long double)" " = 16" + gdb_test "print sizeof (void*)" " = $void_ptr_size" + gdb_test "print sizeof (long double)" " = $long_double_size" } set infos { \ |