/
githubmirror
/
librepo
Обзор
Документация
Войти
/
githubmirror
/
librepo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/fixtures.h
29 строк
645 B
Colin Walters
tests: Pass true(1)/false(0) to ck_assert_msg, fix check.h backcompat
16 мар 2015, 16:24
16 мар 2015, 16:24
16b5bea
Код
Авторство
О чём код?
#ifndef LR_FIXTURES_H #define LR_FIXTURES_H #include <glib.h> #include <check.h> struct TestGlobals_s { char *testdata_dir; char *tmpdir; }; /* global data used to pass values from fixtures to tests */ extern struct TestGlobals_s test_globals; void test_log_handler_cb(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data); void lr_assert_strv_eq(const gchar * const *strv, ...); /* Old versions of check.h don't have this, just use g_assert() and drop the message */ #ifndef ck_assert_msg #define ck_assert_msg(exp, ...) g_assert (exp) #endif #endif /* FIXTURES_H */