From 18f5c628a5f4e389836dd6e404280f38cfac1f63 Mon Sep 17 00:00:00 2001 From: Toni Gundogdu Date: Wed, 8 Aug 2012 16:35:29 +0300 Subject: [PATCH] tests: Add chk_geoblocked function --- tests/lib/env.c | 5 +++++ tests/lib/tests.h | 1 + 2 files changed, 6 insertions(+) diff --git a/tests/lib/env.c b/tests/lib/env.c index b8b2a10..d9beb8b 100644 --- a/tests/lib/env.c +++ b/tests/lib/env.c @@ -38,6 +38,11 @@ gboolean chk_env(const gchar *w, const gchar *m) return (TRUE); } +gboolean chk_geoblocked() +{ + return (chk_env("TEST_GEOBLOCKED", "SKIP: Set TEST_GEOBLOCKED to enable")); +} + gboolean chk_nsfw() { return (chk_env("TEST_NSFW", "SKIP: Set TEST_NSFW to enable")); diff --git a/tests/lib/tests.h b/tests/lib/tests.h index b7c1388..6ca3051 100644 --- a/tests/lib/tests.h +++ b/tests/lib/tests.h @@ -29,6 +29,7 @@ glong qerr(quvi_t); gboolean chk_env(const gchar*, const gchar*); gboolean chk_skip(const gchar*); void chk_verbose(quvi_t); +gboolean chk_geoblocked(); gboolean chk_complete(); gboolean chk_fixme(); gboolean chk_nsfw(); -- 2.11.4.GIT