aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.chill/pr-5020.exp
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1994-06-09 23:13:54 +0000
committerPer Bothner <per@bothner.com>1994-06-09 23:13:54 +0000
commit605f94ba350cd1a2a72ab918105a0e7a0859eaae (patch)
treef1f560fad11936c1a2300ca97543074bb2b8c099 /gdb/testsuite/gdb.chill/pr-5020.exp
parentf2f803c158267f01f4c30e80abe52585e8e926f1 (diff)
downloadgdb-605f94ba350cd1a2a72ab918105a0e7a0859eaae.zip
gdb-605f94ba350cd1a2a72ab918105a0e7a0859eaae.tar.gz
gdb-605f94ba350cd1a2a72ab918105a0e7a0859eaae.tar.bz2
* Makefile.in: Bunch of fixes so it actually works in this
directory. (E.g. add extra ../ where needed.) Also, add .exe to executables, so we can use suffix rules. * chexp.exp (test_print_reject): Update syntax error message. * chillvars.ch (module PR_5020): Moved from here ... * pr-5022.ch: ... to this new file. * chillvars.exp, pr-5020.exp (binfile): Add .exe extension. * chillvars.exp, pr-5020.exp: Don't check all_flag. * pr-5020.exp: Add more tests; fix "print y pretty" output.
Diffstat (limited to 'gdb/testsuite/gdb.chill/pr-5020.exp')
-rw-r--r--gdb/testsuite/gdb.chill/pr-5020.exp28
1 files changed, 15 insertions, 13 deletions
diff --git a/gdb/testsuite/gdb.chill/pr-5020.exp b/gdb/testsuite/gdb.chill/pr-5020.exp
index df72aea..902bb05 100644
--- a/gdb/testsuite/gdb.chill/pr-5020.exp
+++ b/gdb/testsuite/gdb.chill/pr-5020.exp
@@ -54,17 +54,21 @@ proc test_pr_5020 {} {
global prompt
runto dummy_pr_5020
gdb_test_exact "print y" \
- {= [ ('a') [.l: 10, .b: TRUE], ('b') [.l: 111, .b: FALSE]]}
+ {= [('a'): [.l: 10, .b: TRUE], ('b'): [.l: 111, .b: FALSE]]}
+ gdb_test_exact "print boolarr" \
+ {= [(FALSE): [.l: 10, .b: TRUE], (TRUE): [.l: 111, .b: FALSE]]}
+ gdb_test_exact "print intarr" \
+ {= [(10): [.l: 10, .b: TRUE], (11): [.l: 111, .b: FALSE]]}
+ gdb_test_exact "print setarr" \
+ {= [(aa): [.l: 10, .b: TRUE], (bb): [.l: 111, .b: FALSE]]}
send "set print pretty\n" ; expect -re "$prompt $"
gdb_test_exact "print y" \
-{= [
- (`a`) [
- .l: 10,
- .b: TRUE
- ],
- ('b') [
- .l: 111,
- .b: FALSE
+{= [('a'): [
+ .l: 10,
+ .b: TRUE
+ ], ('b'): [
+ .l: 111,
+ .b: FALSE
]]} "print y pretty"
}
@@ -72,13 +76,11 @@ proc test_pr_5020 {} {
# haven't tried to compile one, or the compilation failed for some reason.
# In either case, just notify the user and skip the tests in this file.
-set binfile "chillvars"
+set binfile "pr-5020.exe"
set srcfile $binfile.ch
if ![file exists $objdir/$subdir/$binfile] then {
- if $all_flag then {
- warning "$binfile does not exist; tests suppressed."
- }
+ warning "$objdir/$subdir/$binfile does not exist; tests suppressed."
} else {
do_tests
}