This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
(patch) hpjyg13: dejagnu/lib/framework.exp
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: (patch) hpjyg13: dejagnu/lib/framework.exp
- From: Jimmy Guo <guo at cup dot hp dot com>
- Date: Fri, 5 Nov 1999 13:35:55 -0800 (PST)
Extends setup_xfail PRMS handling. See ChangeLog.
ChangeLog:
1999-11-05 Jimmy Guo <guo@cup.hp.com>
* framework.exp (setup_xfail): extend PRMS number pattern to
anything not containing '-' (target triplet spec). This enables
cleaner and more precise xfail message specification where
target specific 'PRMS' numbers are specified in corresponding
setup_xfail call instead of in the literal fail string (e.g.
HP's bug tracking numbers associated with HP compilers on
HP targets).
Index: dejagnu/lib/framework.exp
/opt/gnu/bin/diff -r -c -N /view/guo.import//CLO/Components/WDB/Src/gnu/dejagnu/lib/framework.exp dejagnu/lib/framework.exp
*** /view/guo.import//CLO/Components/WDB/Src/gnu/dejagnu/lib/framework.exp Tue Jun 22 22:46:11 1999
--- dejagnu/lib/framework.exp Fri Jul 16 13:30:44 1999
***************
*** 417,424 ****
# Setup a flag to control whether a failure is expected or not
#
# Multiple target triplet patterns can be specified for targets
! # for which the test fails. A decimal number can be specified,
! # which is the PRMS number.
#
proc setup_xfail { args } {
global xfail_flag
--- 417,424 ----
# Setup a flag to control whether a failure is expected or not
#
# Multiple target triplet patterns can be specified for targets
! # for which the test fails. A bug report ID can be specified,
! # which is a string without '-'.
#
proc setup_xfail { args } {
global xfail_flag
***************
*** 428,435 ****
set argc [ llength $args ]
for { set i 0 } { $i < $argc } { incr i } {
set sub_arg [ lindex $args $i ]
! # is a prms number. we assume this is a number with no characters
! if [regexp "^\[0-9\]+$" $sub_arg] {
set xfail_prms $sub_arg
continue
}
--- 428,435 ----
set argc [ llength $args ]
for { set i 0 } { $i < $argc } { incr i } {
set sub_arg [ lindex $args $i ]
! # is a prms number. we assume this is a string with no '-' characters
! if [regexp "^\[^\-\]+$" $sub_arg] {
set xfail_prms $sub_arg
continue
}