]> source.dussan.org Git - jgit.git/commit
Ensure RacyGitTests don't raise false negatives 60/126160/1
authorChristian Halstrick <christian.halstrick@sap.com>
Tue, 17 Jul 2018 10:00:04 +0000 (12:00 +0200)
committerChristian Halstrick <christian.halstrick@sap.com>
Tue, 17 Jul 2018 10:00:04 +0000 (12:00 +0200)
commit6db9371250866b76b7eb54f8bc1c69ff79c19098
tree905bc557e1e6632a928c354c1fd4daea808bb85d
parente4774f45c4190ee0c5ec4f5f575d9d4df1df4959
Ensure RacyGitTests don't raise false negatives

RacyGitTests depend on filesystem timer resolution. We wait for a file
system timer tick, remember that time as t1, modify a file and assume
that this file has a lastmodified of t1.

If this assumption is not fulfilled then ignore the test result.

Bug: 526111
Change-Id: Ia38b7d2f99171ef54b8f9fe5be343cf9fcfd3971
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RacyGitTests.java