clock() returns a clock_t, which is a long and might overflow in 32-bit systems when the test takes a long time to run. Changing it to uint64_t fixes this issue. Before: [ RUN ] LlvmLibcHashTest.Avalanche [ OK ] LlvmLibcHashTest.Avalanche (18446744073709551138 ms) After this patch: [ RUN ] LlvmLibcHashTest.Avalanche [ OK ] LlvmLibcHashTest.Avalanche (4154 ms)
9.2 KiB
9.2 KiB