Skip to content

Commit 95bbfe4

Browse files
SiegeLordExSiegeLord
authored andcommitted
Do some logging in the test driver, for debugging.
1 parent da4c871 commit 95bbfe4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_driver.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
#include <allegro5/allegro_ttf.h>
1717
#include <allegro5/allegro_primitives.h>
1818

19+
ALLEGRO_DEBUG_CHANNEL("test")
20+
1921
#define MAX_BITMAPS 128
2022
#define MAX_TRANS 8
2123
#define MAX_FONTS 16
@@ -964,6 +966,7 @@ static bool do_test(ALLEGRO_CONFIG *cfg, char const *testname,
964966

965967
for (op = 0; ; op++) {
966968
sprintf(buf, "op%d", op);
969+
ALLEGRO_INFO("%s\n", buf);
967970
stmt = al_get_config_value(cfg, testname, buf);
968971
if (!stmt) {
969972
/* Check for a common mistake. */
@@ -1679,6 +1682,7 @@ static void partial_tests(ALLEGRO_CONFIG const *cfg, int n)
16791682
ALLEGRO_USTR *name = al_ustr_new("");
16801683

16811684
while (n > 0) {
1685+
ALLEGRO_INFO("Running test %s\n", argv[0]);
16821686
/* Automatically prepend "test" for convenience. */
16831687
if (0 == strncmp(argv[0], "test ", 5)) {
16841688
al_ustr_assign_cstr(name, argv[0]);
@@ -1701,6 +1705,7 @@ static void partial_tests(ALLEGRO_CONFIG const *cfg, int n)
17011705
argv++;
17021706
n--;
17031707
}
1708+
ALLEGRO_INFO("Done running tests\n");
17041709

17051710
al_ustr_free(name);
17061711
}

0 commit comments

Comments
 (0)