Skip to content

Commit 68cd22c

Browse files
committed
test: add info log
1 parent 1545191 commit 68cd22c

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

lib/ptk/src/app.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717

1818
int ptk_init(const wchar_t *name)
1919
{
20+
#ifdef PTK_LINUX
21+
printf("[app] initializing linux app...\n");
22+
#endif
23+
#ifdef PTK_HAS_LIBX11
24+
printf("[app] x11 support detected, trying to use x11app engine...\n");
25+
#endif
2026
if (ptk_app_init(name) != 0) {
2127
return -1;
2228
}

lib/ptk/src/linux/app.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,18 +185,19 @@ int ptk_app_init(const wchar_t *name)
185185
{
186186
linux_app.id = PTK_APP_ID_LINUX;
187187
#ifdef PTK_HAS_LIBX11
188+
printf("[app] x11 support detected, trying to use x11app engine...\n");
188189
ptk_x11app_driver_init(&linux_app.app);
189190
ptk_x11window_driver_init(&linux_app.window);
190191
if (linux_app.app.init(name) == 0) {
191-
logger_debug("[app] use engine: x11app\n");
192+
printf("[app] use engine: x11app\n");
192193
linux_app.id = PTK_APP_ID_LINUX_X11;
193194
linux_app.active = true;
194195
return 0;
195196
}
196197
memset(&linux_app.app, 0, sizeof(linux_app.app));
197198
memset(&linux_app.window, 0, sizeof(linux_app.window));
198199
#endif
199-
logger_debug("[app] use engine: fbapp\n");
200+
printf("[app] use engine: fbapp\n");
200201
ptk_fbapp_driver_init(&linux_app.app);
201202
ptk_fbwindow_driver_init(&linux_app.window);
202203
if (linux_app.app.init(name) == 0) {

tests/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static const ctest_suite_t suites[] = {
4545

4646
int main(int argc, char **argv)
4747
{
48-
logger_set_level(LOGGER_LEVEL_ERROR);
48+
logger_set_level(LOGGER_LEVEL_INFO);
4949
if (ctest_parse_args(argc, argv) != 0) {
5050
return 1;
5151
}

0 commit comments

Comments
 (0)