~bregma/unity/lp-1302955-trusty

« back to all changes in this revision

Viewing changes to tests/test_main_xless.cpp

  • Committer: CI Train Bot
  • Author(s): Stephen M. Webb, Marco Trevisan (Treviño)
  • Date: 2014-12-17 20:51:55 UTC
  • mfrom: (3805.2.22 7.2.4)
  • Revision ID: ci-train-bot@canonical.com-20141217205155-5c1r3asyuljen2bf
release 7.2.4 Fixes: #796527, #1059275, #1066971, #1237132, #1276177, #1292218, #1299741, #1301776, #1302885, #1305440, #1308540, #1316265, #1324104, #1328677, #1329584, #1332509, #1332947, #1349281, #1350331, #1353070, #1354498, #1361679, #1361713, #1361751, #1362162, #1362346, #1364225, #1368427, #1370017, #1371764, #1373695, #1374785, #1375271, #1383468, #1384910, #1384958, #1385285
Approved by: Marco Trevisan (Treviño)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#include <NuxCore/Logger.h>
4
4
#include <Nux/Nux.h>
5
5
#include <config.h>
6
 
 
 
6
#include "test_utils.h"
7
7
 
8
8
const gchar* LOCAL_DATA_DIR = BUILDDIR"/tests/data:/usr/share";
9
9
 
10
10
int main(int argc, char** argv)
11
11
{
12
12
  ::testing::InitGoogleTest(&argc, argv);
13
 
#if G_ENCODE_VERSION (GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION) <= GLIB_VERSION_2_34
14
 
  g_type_init();
15
 
#endif
 
13
 
16
14
  setlocale(LC_ALL, "C");
17
 
 
 
15
  g_setenv("LC_ALL", "C", TRUE);
 
16
  Utils::init_gsettings_test_environment();
18
17
  g_setenv("XDG_DATA_DIRS", LOCAL_DATA_DIR, TRUE);
19
18
 
20
19
  // Slightly higher as we're more likely to test things we know will fail