Message ID | 87a8vnzmzy.fsf@br87z6lw.de.ibm.com |
---|---|
State | New |
Headers | show |
Andreas Arnez <arnez@linux.vnet.ibm.com> writes: > Right, this was considered in the patch. But only what I've actually > seen fail in my testing is marked as KFAIL. Since more FAILs are > observed now, maybe we could mark them as KFAIL as well. Or skip them > altogether, like in the patch below. WDYT? I am inclined to skip them altogether, but I think we need skip more. With your patch applied, I still see them in gdb.sum KFAIL: gdb.base/gnu_vector.exp: call add_some_intvecs (PRMS: gdb/18537) KPASS: gdb.base/gnu_vector.exp: call add_many_charvecs (PRMS gdb/18537) KFAIL: gdb.base/gnu_vector.exp: call add_various_floatvecs (PRMS: gdb/18537) KFAIL: gdb.base/gnu_vector.exp: call add_structvecs (PRMS: gdb/18537) KFAIL: gdb.base/gnu_vector.exp: skip remaining vector ABI tests on this arch (PRMS: gdb/18537) KPASS is confusing here. I'd like to skip all of them on x86 and emit UNSUPPORTED in gdb.sum, because we've already know that vector infcall doesn't support on x86, UNSUPPORTED is better than KFAIL, IMO.
diff --git a/gdb/testsuite/gdb.base/gnu_vector.exp b/gdb/testsuite/gdb.base/gnu_vector.exp index cf91fbb..885e2f2 100644 --- a/gdb/testsuite/gdb.base/gnu_vector.exp +++ b/gdb/testsuite/gdb.base/gnu_vector.exp @@ -189,13 +189,18 @@ gdb_test "print add_various_floatvecs(2, f4a, f4b)" "= \\{3, 6, 16, 20\\}" \ setup_kfail gdb/18537 "i?86-*-*" "x86_64-*-*" gdb_test "print add_structvecs(i2, (struct just_int2)\{2*i2\}, (struct two_int2)\{3*i2, 4*i2\})" \ "= \\{i = \\{10, 20\\}\\}" "call add_structvecs" +if { [istarget "i?86-*-*"] || [istarget "x86_64-*-*" ] } { + # The next test has been seen to crash the inferior on x86_64, so + # just stop here. + kfail gdb/18537 "skip remaining vector ABI tests on this arch" + return +} gdb_test "print add_singlevecs((char1) \{6\}, (int1) \{12\}, (double1) \{24\})" "= \\{42\\}" \ "call add_singlevecs" # Test vector return value handling with "finish" and "return". gdb_breakpoint "add_some_intvecs" gdb_continue "add_some_intvecs" -setup_kfail gdb/18537 "i?86-*-*" "x86_64-*-*" gdb_test "finish" "Value returned is .* = \\{10, 20, 48, 72\\}" \ "finish shows vector return value" gdb_continue "add_some_intvecs" @@ -203,5 +208,4 @@ gdb_test "return (int4) \{4, 2, 7, 6\}" \ "#0 .* main .*" \ "set vector return value" \ "Make add_some_intvecs return now. .y or n.*" "y" -setup_kfail gdb/18537 "i?86-*-*" "x86_64-*-*" gdb_test "continue" "4 2 7 6\r\n.*" "verify vector return value"