diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-08-01 20:32:09 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-08-01 20:32:09 +0200 |
commit | 1514570ff02967b40ad3f72e301a574ed49d29ab (patch) | |
tree | 0d3f8d1b8ed754d67d18454291b4c9d9607f6a15 /tests/scripts/python/testapi.py | |
parent | 2475ba43a3a3a5b9c894d71c91cd1c598b60039b (diff) | |
download | weechat-1514570ff02967b40ad3f72e301a574ed49d29ab.zip |
scripts: fix issue with year ≥ 2038 in function infolist_new_var_time
Affected plugins: python, lua, tcl, guile, javascript.
Diffstat (limited to 'tests/scripts/python/testapi.py')
-rw-r--r-- | tests/scripts/python/testapi.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/scripts/python/testapi.py b/tests/scripts/python/testapi.py index 79c0763bb..a9aaffee7 100644 --- a/tests/scripts/python/testapi.py +++ b/tests/scripts/python/testapi.py @@ -244,7 +244,10 @@ def infolist_cb(data, infolist_name, pointer, arguments): check(weechat.infolist_new_var_integer(item, 'integer', 123) != '') check(weechat.infolist_new_var_string(item, 'string', 'test string') != '') check(weechat.infolist_new_var_pointer(item, 'pointer', '0xabcdef') != '') - check(weechat.infolist_new_var_time(item, 'time', 1231231230) != '') + # Tue Jan 06 2009 08:40:30 GMT+0000 + check(weechat.infolist_new_var_time(item, 'time1', 1231231230) != '') + # Tue Jan 06 2150 08:40:30 GMT+0000 + check(weechat.infolist_new_var_time(item, 'time2', 5680744830) != '') return infolist @@ -260,8 +263,9 @@ def test_infolist(): check(weechat.infolist_integer(ptr_infolist, 'integer') == 123) check(weechat.infolist_string(ptr_infolist, 'string') == 'test string') check(weechat.infolist_pointer(ptr_infolist, 'pointer') == '0xabcdef') - check(weechat.infolist_time(ptr_infolist, 'time') == 1231231230) - check(weechat.infolist_fields(ptr_infolist) == 'i:integer,s:string,p:pointer,t:time') + check(weechat.infolist_time(ptr_infolist, 'time1') == 1231231230) + check(weechat.infolist_time(ptr_infolist, 'time2') == 5680744830) + check(weechat.infolist_fields(ptr_infolist) == 'i:integer,s:string,p:pointer,t:time1,t:time2') check(weechat.infolist_next(ptr_infolist) == 0) weechat.infolist_free(ptr_infolist) weechat.unhook(hook_infolist) |