summaryrefslogtreecommitdiff
path: root/snappy-test.h
diff options
context:
space:
mode:
authorsnappy.mirrorbot@gmail.com <snappy.mirrorbot@gmail.com@03e5f5b5-db94-4691-08a0-1a8bf15f6143>2012-07-04 09:34:48 +0000
committersnappy.mirrorbot@gmail.com <snappy.mirrorbot@gmail.com@03e5f5b5-db94-4691-08a0-1a8bf15f6143>2012-07-04 09:34:48 +0000
commite89f20ab46ee11050760c6d57f05c2a3825a911c (patch)
tree6def3f928b48b4d3d8ade7e9aa857157c6ab025a /snappy-test.h
parent3ec60ac9878de5d0317ad38fc545080a4bfaa74f (diff)
downloadsnappy-git-e89f20ab46ee11050760c6d57f05c2a3825a911c.tar.gz
Handle the case where gettimeofday() goes backwards or returns the same value
twice; it could cause division by zero in the unit test framework. (We already had one fix for this in place, but it was incomplete.) This could in theory happen on any system, since there are few guarantees about gettimeofday(), but seems to only happen in practice on GNU/Hurd, where gettimeofday() is cached and only updated ever so often. R=sanjay git-svn-id: https://snappy.googlecode.com/svn/trunk@65 03e5f5b5-db94-4691-08a0-1a8bf15f6143
Diffstat (limited to 'snappy-test.h')
0 files changed, 0 insertions, 0 deletions