libgo: Update to weekly.2012-03-04 release.

From-SVN: r185010
This commit is contained in:
Ian Lance Taylor 2012-03-06 17:57:23 +00:00
parent 46402cbe0b
commit 593f74bbab
147 changed files with 3080 additions and 2022 deletions

View file

@ -120,8 +120,11 @@ func TestAfterTick(t *testing.T) {
t1 := Now()
d := t1.Sub(t0)
target := Delta * Count
if d < target*9/10 || d > target*30/10 {
t.Fatalf("%d ticks of %s took %s, expected %s", Count, Delta, d, target)
if d < target*9/10 {
t.Fatalf("%d ticks of %s too fast: took %s, expected %s", Count, Delta, d, target)
}
if !testing.Short() && d > target*30/10 {
t.Fatalf("%d ticks of %s too slow: took %s, expected %s", Count, Delta, d, target)
}
}