[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to abort a test?
From: |
Joel Brobecker |
Subject: |
Re: How to abort a test? |
Date: |
Thu, 21 Jan 2016 14:42:14 +0400 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
> --status does no really impact how a timeout is handled. What happens
> when a timeout occurs in gdb_test is defined by us. Right now, it
> produces a test "fail":
>
> testsuite/lib/gdb.exp:
> 937 timeout {
> 938 if ![string match "" $message] then {
> 939 fail "$message (timeout)"
> 940 }
> 941 set result 1
> 942 }
>
> So you see, for example:
>
> FAIL: gdb.base/break.exp: some test (timeout)
>
> and the test case carries on. A gdb_test timeout is no different than
> a regular fail. If you replace the "fail" at line 939 with "error",
> which throws a TCL exception, then the current test case will abort,
> although in this quite ugly way:
Argh. I was hoping that we would be able to add something at the end
of the timeout handler to abort, but in a nice way.
So, IIUC, without help from dejagnu, there is no way we know of
to abort testcases...
Thanks for having looked into this!
--
Joel
- How to abort a test?, Simon Marchi, 2016/01/12
- Re: How to abort a test?, Pedro Alves, 2016/01/14
- Re: How to abort a test?, Simon Marchi, 2016/01/14
- Re: How to abort a test?, Pedro Alves, 2016/01/14
- Re: How to abort a test?, Simon Marchi, 2016/01/14
- Re: How to abort a test?, Pedro Alves, 2016/01/14
- Re: How to abort a test?, Simon Marchi, 2016/01/15
- Re: How to abort a test?, Ben Elliston, 2016/01/15
- Re: How to abort a test?, Joel Brobecker, 2016/01/17
- Re: How to abort a test?, Simon Marchi, 2016/01/18
- Re: How to abort a test?,
Joel Brobecker <=