Add support to skip import libraries for performance reasons and instead
[binutils-gdb.git] / gdb / testsuite / gdb.chill / gch1280.exp
1 # OBSOLETE # Copyright 1995, 1996, 1997 Free Software Foundation, Inc.
2 # OBSOLETE
3 # OBSOLETE # This program is free software; you can redistribute it and/or modify
4 # OBSOLETE # it under the terms of the GNU General Public License as published by
5 # OBSOLETE # the Free Software Foundation; either version 2 of the License, or
6 # OBSOLETE # (at your option) any later version.
7 # OBSOLETE #
8 # OBSOLETE # This program is distributed in the hope that it will be useful,
9 # OBSOLETE # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # OBSOLETE # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # OBSOLETE # GNU General Public License for more details.
12 # OBSOLETE #
13 # OBSOLETE # You should have received a copy of the GNU General Public License
14 # OBSOLETE # along with this program; if not, write to the Free Software
15 # OBSOLETE # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16 # OBSOLETE
17 # OBSOLETE # Please email any bugs, comments, and/or additions to this file to:
18 # OBSOLETE # bug-gdb@prep.ai.mit.edu
19 # OBSOLETE
20 # OBSOLETE # This file was written by Wilfried Moser (moser@aut.alcatel.at)
21 # OBSOLETE #
22 # OBSOLETE
23 # OBSOLETE if $tracelevel then {
24 # OBSOLETE strace $tracelevel
25 # OBSOLETE }
26 # OBSOLETE
27 # OBSOLETE if [skip_chill_tests] then { continue }
28 # OBSOLETE
29 # OBSOLETE set testfile "gch1280"
30 # OBSOLETE set srcfile ${srcdir}/$subdir/${testfile}.ch
31 # OBSOLETE set binfile ${objdir}/${subdir}/${testfile}.exe
32 # OBSOLETE if { [compile "${srcfile} -g -o ${binfile} ${CHILL_RT0} ${CHILL_LIB}"] != "" } {
33 # OBSOLETE perror "Couldn't compile ${srcfile}"
34 # OBSOLETE return -1
35 # OBSOLETE }
36 # OBSOLETE
37 # OBSOLETE # Set the current language to chill. This counts as a test. If it
38 # OBSOLETE # fails, then we skip the other tests.
39 # OBSOLETE
40 # OBSOLETE proc set_lang_chill {} {
41 # OBSOLETE global gdb_prompt
42 # OBSOLETE global binfile objdir subdir
43 # OBSOLETE
44 # OBSOLETE verbose "loading file '$binfile'"
45 # OBSOLETE gdb_load $binfile
46 # OBSOLETE
47 # OBSOLETE send_gdb "set language chill\n"
48 # OBSOLETE gdb_expect {
49 # OBSOLETE -re ".*$gdb_prompt $" {}
50 # OBSOLETE timeout { fail "set language chill (timeout)" ; return 0 }
51 # OBSOLETE }
52 # OBSOLETE
53 # OBSOLETE return [gdb_test "show language" ".* source language is \"chill\".*" \
54 # OBSOLETE "set language to \"chill\""]
55 # OBSOLETE }
56 # OBSOLETE
57 # OBSOLETE set prms_id 0
58 # OBSOLETE set bug_id 0
59 # OBSOLETE
60 # OBSOLETE # Start with a fresh gdb.
61 # OBSOLETE
62 # OBSOLETE gdb_exit
63 # OBSOLETE gdb_start
64 # OBSOLETE gdb_reinitialize_dir $srcdir/$subdir
65 # OBSOLETE
66 # OBSOLETE gdb_test "set print sevenbit-strings" ".*"
67 # OBSOLETE
68 # OBSOLETE if ![set_lang_chill] then {
69 # OBSOLETE runto doit
70 # OBSOLETE gdb_test "next" ""
71 # OBSOLETE # check too many array elements
72 # OBSOLETE gdb_test {set var v_x := [1,2,3,4,5]} {Too many array elements}
73 # OBSOLETE gdb_test {set var $i := m_x[(3): 22, 25]} {Too many array elements}
74 # OBSOLETE gdb_test "set var \$i := m_x\[\(2\): 22, 25\]" ""
75 # OBSOLETE gdb_test {print $i} { = \[\(1\): 0, \(2\): 22, \(3\): 25\]}
76 # OBSOLETE }