[libpeas] Add an assert to the test suite
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Add an assert to the test suite
- Date: Tue, 20 Jan 2015 09:23:42 +0000 (UTC)
commit 0bd07e7a7ff2e0e8cfba408341a5eeb708b0d0b6
Author: Garrett Regier <garrettregier gmail com>
Date: Sun Jan 18 05:07:47 2015 -0800
Add an assert to the test suite
We do this in the rest of the test cases and it
adds a fast failure point.
tests/libpeas-gtk/plugin-manager-view.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/tests/libpeas-gtk/plugin-manager-view.c b/tests/libpeas-gtk/plugin-manager-view.c
index 6f48520..b7b8dca 100644
--- a/tests/libpeas-gtk/plugin-manager-view.c
+++ b/tests/libpeas-gtk/plugin-manager-view.c
@@ -143,8 +143,7 @@ test_gtk_plugin_manager_view_selection (TestFixture *fixture)
info = peas_gtk_plugin_manager_view_get_selected_plugin (fixture->view);
g_assert (info == NULL);
- gtk_tree_model_get_iter_first (fixture->model, &iter);
-
+ g_assert (gtk_tree_model_get_iter_first (fixture->model, &iter));
gtk_tree_selection_select_iter (fixture->selection, &iter);
info = peas_gtk_plugin_manager_view_get_selected_plugin (fixture->view);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]