Skip to content

Commit

Permalink
Merge pull request #1305 from jluebbe/test-fix-type-mismatch
Browse files Browse the repository at this point in the history
test/event_log: fix type mismatch
  • Loading branch information
ejoerns committed Dec 20, 2023
2 parents ba09220 + d1e2de3 commit b85298e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/event_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ static void event_log_test_max_size(EventLogFixture *fixture,

/* Message size is 128 bytes, thus the 4th write should exceed the
* configured 500 bytes maxsize and create the rotation file. */
for (guint8 i = 0; i < rot_test->rotates_at; i++) {
for (gint i = 0; i < rot_test->rotates_at; i++) {
logger->writer(logger, fields, G_N_ELEMENTS(fields));
if (i == rot_test->rotates_at -1 )
if (i == rot_test->rotates_at - 1)
g_assert_true(g_file_test(rotatefile, G_FILE_TEST_EXISTS));
else
g_assert_false(g_file_test(rotatefile, G_FILE_TEST_EXISTS));
Expand Down

0 comments on commit b85298e

Please sign in to comment.