[pulseaudio-commits] r1959 - /branches/lennart/src/tests/smoother-test.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Sat Oct 27 08:48:24 PDT 2007
Author: lennart
Date: Sat Oct 27 17:48:23 2007
New Revision: 1959
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1959&root=pulseaudio&view=rev
Log:
minor fixups, to make the test more deterministic
Modified:
branches/lennart/src/tests/smoother-test.c
Modified: branches/lennart/src/tests/smoother-test.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/tests/smoother-test.c?rev=1959&root=pulseaudio&r1=1958&r2=1959&view=diff
==============================================================================
--- branches/lennart/src/tests/smoother-test.c (original)
+++ branches/lennart/src/tests/smoother-test.c Sat Oct 27 17:48:23 2007
@@ -45,12 +45,17 @@
int msec[200];
+ srand(0);
+
for (m = 0, u = 0; u < PA_ELEMENTSOF(msec)-2; u+= 2) {
msec[u] = m+1;
msec[u+1] = m + rand() % 2000 - 1000;
m += rand() % 100;
+
+ if (msec[u+1] < 0)
+ msec[u+1] = 0;
}
msec[PA_ELEMENTSOF(msec)-2] = 0;
More information about the pulseaudio-commits
mailing list