1
From: Daniel_Burrows@alumni.brown.edu <Daniel_Burrows@alumni.brown.edu>
2
Date: Sat, 19 Jun 2010 11:22:05 -0700
3
Subject: [PATCH] Don't try to test the search input controller if the GTK+ frontend wasn't built.
4
If the GTK+ frontend isn't built, neither is the controller,
5
so the test won't build.
8
tests/test_search_input_controller.cc | 4 ++++
9
1 files changed, 4 insertions(+), 0 deletions(-)
11
diff --git a/tests/test_search_input_controller.cc b/tests/test_search_input_controller.cc
12
index 8b01da0..7704828 100644
13
--- a/tests/test_search_input_controller.cc
14
+++ b/tests/test_search_input_controller.cc
16
// the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
// Boston, MA 02111-1307, USA.
21
#include <generic/apt/matching/compare_patterns.h>
22
#include <generic/apt/matching/pattern.h>
23
#include <gtk/controllers/search_input.h>
24
@@ -146,3 +148,5 @@ BOOST_FIXTURE_TEST_CASE(testEnteringCorrectTextSearches, SearchInputTest)
26
get_controller()->enter_text(p_text);