OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gdb-7.2/] [gdb-7.2-or32-1.0rc3/] [gdb/] [testsuite/] [gdb.cp/] [static-print-quit.exp] - Blame information for rev 579

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 330 jeremybenn
# Copyright 2010 Free Software Foundation, Inc.
2
 
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; either version 3 of the License, or
6
# (at your option) any later version.
7
#
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
# GNU General Public License for more details.
12
#
13
# You should have received a copy of the GNU General Public License
14
# along with this program.  If not, see .
15
 
16
if { [skip_cplus_tests] } { continue }
17
 
18
set testfile static-print-quit
19
set srcfile ${testfile}.cc
20
set executable $testfile.o
21
set objfile ${objdir}/${subdir}/${executable}
22
 
23
if { [gdb_compile $srcdir/$subdir/$srcfile $objfile object {debug c++}] != ""} {
24
    untested ${testfile}.exp
25
    return -1
26
}
27
 
28
clean_restart $executable
29
 
30
gdb_test_no_output "set width 80"
31
gdb_test_no_output "set height 2"
32
 
33
set test "print c"
34
gdb_test_multiple $test $test {
35
    -re " = \{loooooooooooooooooooooooooooooooooooooooooooooong = 0, static field = \{\r\n---Type  to continue, or q  to quit---$" {
36
        pass $test
37
    }
38
    -re " to quit---$" {
39
        fail $test
40
        return -1
41
    }
42
}
43
 
44
gdb_test "q" ".*"
45
 
46
# Now the obstack is uninitialized.  Excercise it.
47
 
48
gdb_test_no_output "set pagination off"
49
gdb_test "print c" ".*" "first print"
50
gdb_test "print c" ".*" "second print"

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.