Allow test fixtures and test methods to throw errors by default.
* test/testcase.vala (TestCase): Add a generic throws clause to both TestMethod and set_up and tear_down, update subclasses.
This commit is contained in:
parent
6b24e07e56
commit
50f73ff252
27 changed files with 168 additions and 155 deletions
|
|
@ -19,7 +19,7 @@ class ConfigurationTest : Gee.TestCase {
|
|||
this.test_config = new Configuration(GearyApplication.APP_ID);
|
||||
}
|
||||
|
||||
public void desktop_environment() {
|
||||
public void desktop_environment() throws Error {
|
||||
assert(this.test_config.desktop_environment ==
|
||||
Configuration.DesktopEnvironment.UNKNOWN);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue