[cvs-annodex] commit (/annodex):
liboggz/trunk/src/tests/seek-stress.c
conrad
nobody at lists.annodex.net
Wed Feb 2 12:43:20 EST 2005
Update of /annodex (new revision 819)
Modified files:
liboggz/trunk/src/tests/seek-stress.c
Log Message:
formatting
Modified: liboggz/trunk/src/tests/seek-stress.c
===================================================================
--- liboggz/trunk/src/tests/seek-stress.c 2005-02-02 01:06:57 UTC (rev 818)
+++ liboggz/trunk/src/tests/seek-stress.c 2005-02-02 01:43:19 UTC (rev 819)
@@ -65,8 +65,14 @@
if (verbose)
printf ("\tAttempt seek to %lld ms:\n", units);
+
result = oggz_seek_units (oggz, units, SEEK_SET);
+ diff = result - units;
+ if (verbose)
+ printf ("\t%08lx: %lld ms (+%lld ms)\n",
+ oggz_tell (oggz), oggz_tell_units (oggz), diff);
+
if (result < 0) {
FAIL ("Seek failure\n");
}
@@ -77,15 +83,9 @@
if (units == 0 && result != 0)
FAIL ("Failed seeking to 0");
- diff = result - units;
-
if (diff < 0)
FAIL ("Seek result too early");
- if (verbose)
- printf ("\t%08lx: %lld ms (+%lld ms)\n",
- oggz_tell (oggz), oggz_tell_units (oggz), diff);
-
return units;
}
--
conrad
More information about the cvs-annodex
mailing list