summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Burrows <Daniel Burrows Daniel_Burrows@alumni.brown.edu>2010-06-19 11:22:05 -0700
committerDaniel Burrows <Daniel Burrows Daniel_Burrows@alumni.brown.edu>2010-06-19 11:22:05 -0700
commit73d5e9732138d4ac960f77da2e8bb78fe8811295 (patch)
tree6731b6e66600e53a57db27bc4c9a6144051a322d /tests
parent97d1097814b7790384cb7f3c2defb9305feaf679 (diff)
downloadaptitude-73d5e9732138d4ac960f77da2e8bb78fe8811295.tar.gz
Don't try to test the search input controller if the GTK+ frontend wasn't built.
If the GTK+ frontend isn't built, neither is the controller, so the test won't build.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_search_input_controller.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_search_input_controller.cc b/tests/test_search_input_controller.cc
index 8b01da0a..77048282 100644
--- a/tests/test_search_input_controller.cc
+++ b/tests/test_search_input_controller.cc
@@ -17,6 +17,8 @@
// the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
+#ifdef HAVE_GTK
+
#include <generic/apt/matching/compare_patterns.h>
#include <generic/apt/matching/pattern.h>
#include <gtk/controllers/search_input.h>
@@ -146,3 +148,5 @@ BOOST_FIXTURE_TEST_CASE(testEnteringCorrectTextSearches, SearchInputTest)
get_controller()->enter_text(p_text);
}
+
+#endif // HAVE_GTK