diff tests/test-progress.t @ 13154:e11c14f14491

progress: don't compute estimate without a total Without this, computing an estimate crashes. Test included.
author Augie Fackler <durin42@gmail.com>
date Thu, 16 Dec 2010 07:45:22 -0600
parents 735dd8e8a208
children 3f299f5d9a29
line wrap: on
line diff
--- a/tests/test-progress.t	Tue Dec 14 21:58:13 2010 -0500
+++ b/tests/test-progress.t	Thu Dec 16 07:45:22 2010 -0600
@@ -141,3 +141,9 @@
   loop [==============================>           ] 3/4 2h47m
                                                               \r (esc)
 
+Time estimates should not fail when there's no end point:
+  $ hg -y loop -- -4 2>&1 | python $TESTDIR/filtercr.py
+  
+  loop [ <=>                                              ] 2
+  loop [  <=>                                             ] 3
+                                                              \r (esc)