diff options
author | Simon Busch <morphis@gravedo.de> | 2012-02-12 16:13:56 +0100 |
---|---|---|
committer | Simon Busch <morphis@gravedo.de> | 2012-02-14 06:43:01 +0100 |
commit | 21cfaffb0ba3b0c99385128e450459d0a97437d6 (patch) | |
tree | c5f80c5da8cea749bbc3b570213c548499dc8136 /libfsotest | |
parent | e42740db0fe1c872259056c40d90983f8413fd54 (diff) | |
download | cornucopia-21cfaffb0ba3b0c99385128e450459d0a97437d6.tar.gz cornucopia-21cfaffb0ba3b0c99385128e450459d0a97437d6.tar.bz2 cornucopia-21cfaffb0ba3b0c99385128e450459d0a97437d6.zip |
libfsotest: testassert: catch all possible exception and not only a specific one
Diffstat (limited to 'libfsotest')
-rw-r--r-- | libfsotest/tests/testassert.vala | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libfsotest/tests/testassert.vala b/libfsotest/tests/testassert.vala index f01502e9..495bdd3d 100644 --- a/libfsotest/tests/testassert.vala +++ b/libfsotest/tests/testassert.vala @@ -24,14 +24,14 @@ void test_are_equal() FsoFramework.Test.Assert.are_equal<string>( "Test1", "Test2", "Should not be equal" ); assert( false ); // Should only reached when test failed } - catch ( FsoFramework.Test.AssertError err ) { } + catch ( GLib.Error err ) { } try { FsoFramework.Test.Assert.are_equal<int>( 101, 102, "Should not be equal" ); assert( false ); // Should only reached when test failed } - catch ( FsoFramework.Test.AssertError err ) { } + catch ( GLib.Error err ) { } try { @@ -51,14 +51,14 @@ void test_are_not_equal() FsoFramework.Test.Assert.are_not_equal<string>( "Test1", "Test1", "Should not be equal" ); assert( false ); // Should only reached when test failed } - catch ( FsoFramework.Test.AssertError err ) { } + catch ( GLib.Error err ) { } try { FsoFramework.Test.Assert.are_not_equal<int>( 101, 101, "Should not be equal" ); assert( false ); // Should only reached when test failed } - catch ( FsoFramework.Test.AssertError err ) { } + catch ( GLib.Error err ) { } try @@ -79,7 +79,7 @@ void test_is_true() FsoFramework.Test.Assert.is_true( false ); assert( false ); // Should only reached when test failed } - catch ( FsoFramework.Test.AssertError err ) { } + catch ( GLib.Error err ) { } try { @@ -98,7 +98,7 @@ void test_is_false() FsoFramework.Test.Assert.is_false( true ); assert( false ); // Should only reached when test failed } - catch ( FsoFramework.Test.AssertError err ) { } + catch ( GLib.Error err ) { } try { @@ -117,7 +117,7 @@ void test_fail() FsoFramework.Test.Assert.fail( "fail" ); assert( false ); } - catch ( FsoFramework.Test.AssertError err ) + catch ( GLib.Error err ) { } } |