This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] gnu_vector.exp: Respect `should_kfail' for PR8549


Andreas Arnez <arnez@linux.vnet.ibm.com> writes:

> -gdb_test "p res" "\\{4, 2, 7, 6\\}.*" "verify vector return value"
> +set test "verify vector return value"
> +gdb_test_multiple "p res" $test {
> +    -re ".*= \\{4, 2, 7, 6\\}\r\n.*$gdb_prompt $" {
> +	pass $test
> +    }
> +    -re ".*= \\{10, 20, 48, 72\\}\r\n.*$gdb_prompt $" {
> +	if { $should_kfail } {
> +	    kfail "gdb/8549" $test
> +	} else {
> +	    fail $test
> +	}
> +    }
> +}

IMO, if GDB for a certain target doesn't handle "return" and "finish"
correctly, the return value can be some random results.  Why do we match
"\\{10, 20, 48, 72\\}" here?  I presume that because "10, 20, 48, 72"
was returned in the previous test.  Do *all* targets don't correctly handle
"return" and "finish" return "\\{10, 20, 48, 72\\}"?  In other words, if
we know it is broken already, why do still match the output?  We can
kfail it according to the target triplet.

-- 
Yao (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]