diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-12-03 11:40:18 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-12-03 11:40:18 +0000 |
commit | 8b7dbdc92350e95a77548f36c2b537018ca7d52b (patch) | |
tree | f7f74a6be15aeb82bd9fc57e5379b3d218578279 /gdb/testsuite/gdb.base/structs.c | |
parent | f58d5a2ddfb78a450f1bd6edc4c8d105b3ebc0f8 (diff) | |
download | binutils-8b7dbdc92350e95a77548f36c2b537018ca7d52b.zip binutils-8b7dbdc92350e95a77548f36c2b537018ca7d52b.tar.gz binutils-8b7dbdc92350e95a77548f36c2b537018ca7d52b.tar.bz2 |
gdb/testsuite/
Fix spurious false FAILs.
* gdb.base/structs.c (chartest): New.
(main): Fill-in chartest.
* gdb.base/structs.exp (anychar_re, first): New.
(start_structs_test): Import global anychar_re and first.
New gdb_test call "set print elements 300; ${testfile}"
(start_structs_test <$first>): New block.
(any): Import global anychar_re. New variable ac. Use ${ac}.
Diffstat (limited to 'gdb/testsuite/gdb.base/structs.c')
-rw-r--r-- | gdb/testsuite/gdb.base/structs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/structs.c b/gdb/testsuite/gdb.base/structs.c index b9cff67..36a756b 100644 --- a/gdb/testsuite/gdb.base/structs.c +++ b/gdb/testsuite/gdb.base/structs.c @@ -396,6 +396,8 @@ zed () L18.r = 'Z'; } +static struct { char c; } chartest[256]; + int main() { #ifdef usestubs @@ -404,6 +406,10 @@ int main() #endif int i; + for (i = 0; i < 256; i++) + chartest[i].c = i; + chartest[0].c = 0; /* chartest-done */ + Fun1(foo1); Fun2(foo2); Fun3(foo3); |