зеркало из https://github.com/mozilla/gecko-dev.git
Fixed buffer tests.
This commit is contained in:
Родитель
b51d1cea7b
Коммит
a00f9dda7e
|
@ -172,7 +172,7 @@ TestMallocBuffers(PRUint32 growByPages, PRUint32 pageCount)
|
|||
rv = NS_NewBuffer(&buffer,
|
||||
NS_PAGEMGR_PAGE_SIZE * growByPages,
|
||||
NS_PAGEMGR_PAGE_SIZE * pageCount,
|
||||
nsnull);
|
||||
nsnull);
|
||||
if (NS_FAILED(rv)) {
|
||||
printf("failed to create buffer\n");
|
||||
return rv;
|
||||
|
@ -192,7 +192,7 @@ TestPageBuffers(PRUint32 growByPages, PRUint32 pageCount)
|
|||
rv = NS_NewPageBuffer(&buffer,
|
||||
NS_PAGEMGR_PAGE_SIZE * growByPages,
|
||||
NS_PAGEMGR_PAGE_SIZE * pageCount,
|
||||
nsnull);
|
||||
nsnull);
|
||||
if (NS_FAILED(rv)) {
|
||||
printf("failed to create buffer\n");
|
||||
return rv;
|
||||
|
|
|
@ -169,7 +169,7 @@ main(int argc, char* argv[])
|
|||
}
|
||||
#endif
|
||||
// test for small buffers
|
||||
rv = NS_NewPipe(&in, &out, 12, 24, PR_FALSE, nsnull);
|
||||
rv = NS_NewPipe(&in, &out, 12, 24, PR_TRUE, nsnull);
|
||||
if (NS_FAILED(rv)) {
|
||||
printf("NewPipe failed\n");
|
||||
return -1;
|
||||
|
@ -184,7 +184,7 @@ main(int argc, char* argv[])
|
|||
}
|
||||
|
||||
// test for large buffers
|
||||
rv = NS_NewPipe(&in, &out, 4096, 4096*16, PR_FALSE, nsnull);
|
||||
rv = NS_NewPipe(&in, &out, 4096, 4096*16, PR_TRUE, nsnull);
|
||||
if (NS_FAILED(rv)) {
|
||||
printf("NewPipe failed\n");
|
||||
return -1;
|
||||
|
|
Загрузка…
Ссылка в новой задаче