From 77608001413236f5decbfabea3392137127bd1c1 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 13 Dec 2013 10:36:46 -0600 Subject: in test-formatter, the 12h/24h unit test doesn't need our gschema, so remove it from this MP --- tests/CMakeLists.txt | 2 +- tests/test-formatter.cc | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 23f96b9..6564a25 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -32,7 +32,7 @@ include_directories (${SERVICE_DEPS_INCLUDE_DIRS}) # test-formatter set (TEST_NAME test-formatter) -add_executable (${TEST_NAME} test-formatter.cc gschemas.compiled) +add_executable (${TEST_NAME} test-formatter.cc) add_test (${TEST_NAME} ${TEST_NAME}) add_dependencies (${TEST_NAME} libindicatordatetimeservice) target_link_libraries (${TEST_NAME} indicatordatetimeservice gtest ${SERVICE_DEPS_LIBRARIES} ${GTEST_LIBS}) diff --git a/tests/test-formatter.cc b/tests/test-formatter.cc index 488d9e1..6a408ab 100644 --- a/tests/test-formatter.cc +++ b/tests/test-formatter.cc @@ -18,16 +18,12 @@ * with this program. If not, see . */ -#include -#include - #include #include #include #include "utils.h" -#include "settings-shared.h" #include "glib-fixture.h" @@ -44,21 +40,15 @@ class FormatterFixture: public GlibFixture protected: - GSettings * settings = nullptr; - virtual void SetUp () { super::SetUp (); - settings = g_settings_new (SETTINGS_INTERFACE); - original_locale = g_strdup (setlocale (LC_TIME, NULL)); } virtual void TearDown () { - g_clear_object (&settings); - setlocale (LC_TIME, original_locale); g_clear_pointer (&original_locale, g_free); -- cgit v1.2.3