mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
minor fixups, to make the test more deterministic
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1959 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
581e7f1802
commit
56804de3d3
1 changed files with 5 additions and 0 deletions
|
|
@ -45,12 +45,17 @@ int main(int argc, char*argv[]) {
|
|||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue