mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
tests: cast infolist time variable value to the correct data type
This commit is contained in:
committed by
Sébastien Helleu
parent
082ccb05bb
commit
b433afbd26
@@ -222,7 +222,7 @@ TEST(CoreInfolist, New)
|
||||
/* check content of variable */
|
||||
STRCMP_EQUAL("test_time", var_time->name);
|
||||
LONGS_EQUAL(INFOLIST_TIME, var_time->type);
|
||||
LONGS_EQUAL(1234567890, *((int *)var_time->value));
|
||||
LONGS_EQUAL(1234567890, *((time_t *)var_time->value));
|
||||
LONGS_EQUAL(0, var_time->size);
|
||||
POINTERS_EQUAL(var_buf, var_time->prev_var);
|
||||
POINTERS_EQUAL(NULL, var_time->next_var);
|
||||
|
||||
Reference in New Issue
Block a user