dbus/test/name-test
Alexander Kanavin 4c658af0b8 time: use dbus_int64_t for seconds instead of long
On 32 bit systems long will overflow in 2038, causing complete breakage.
This is confirmed by running dbus's test suite on a 32 bit system
with system time set to 2040 (and configured to use 64 bit time_t of course).

Note that both timespec and timeval are specified with time_t for the
seconds component. This should propagate everywhere where that data is
passed and stored, but previously _dbus_get_monotonic_time() and
_dbus_get_monotonic_time() would truncate it to long.

Also add a function for parsing dbus_int64_t from
files, as existing functions can only handle long.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
2023-08-23 14:42:05 +02:00
..
.gitignore .gitignore: Normalize into LC_ALL=C sort order 2018-12-14 12:53:08 +00:00
CMakeLists.txt Add a test application for autostart on Windows implementation 2022-06-27 15:34:23 +02:00
Makefile.am build: Distribute Meson build system in release tarballs 2022-07-13 20:36:13 +01:00
meson.build test: Work around TAP test regression in Meson 0.63.0 2022-07-15 10:10:54 +01:00
run-test-systemserver.sh Add Meson build system 2022-07-13 20:36:13 +01:00
run-test.sh Add Meson build system 2022-07-13 20:36:13 +01:00
test-autolaunch-win.c test-autolaunch-win.c: Prevent assertion in dbus_message_unref() 2022-10-12 09:38:46 +02:00
test-autolaunch.c test-autolaunch: Add a permissive license 2022-10-12 12:08:38 +00:00
test-ids.c test-ids: Apply a permissive license 2022-10-12 12:08:38 +00:00
test-pending-call-disconnected.c Add SPDX license tags for the MIT (Expat) license, where straightforward 2023-08-14 17:18:04 +00:00
test-pending-call-dispatch.c time: use dbus_int64_t for seconds instead of long 2023-08-23 14:42:05 +02:00
test-pending-call-timeout.c time: use dbus_int64_t for seconds instead of long 2023-08-23 14:42:05 +02:00
test-privserver-client.c Skip name-test/ when running under valgrind for now 2018-08-02 17:16:52 +01:00
test-shutdown.c test-shutdown: Apply a permissive license 2022-10-12 12:08:38 +00:00
test-threads-init.c test-threads-init: Add a permissive license 2022-10-12 12:08:38 +00:00