Skip to content
  • Will Thompson's avatar
    g_timeout_*_seconds: test an interval that overflowed · 6490fe7f
    Will Thompson authored
    This is essentially a C version of the reproducer on #1600. It is based
    on the existing test_seconds(), which relates to a similar but distinct
    overflow.
    
    I've only actually run this on a system with 32-bit ints, it should work
    regardless of the width of an int, since the remainder after wrapping
    will by construction be less than 1 second.
    6490fe7f