Fixed buffer tests.

This commit is contained in:
warren%netscape.com 1999-06-15 08:36:27 +00:00
parent b51d1cea7b
commit a00f9dda7e
2 changed files with 4 additions and 4 deletions

View File

@ -172,7 +172,7 @@ TestMallocBuffers(PRUint32 growByPages, PRUint32 pageCount)
rv = NS_NewBuffer(&buffer, rv = NS_NewBuffer(&buffer,
NS_PAGEMGR_PAGE_SIZE * growByPages, NS_PAGEMGR_PAGE_SIZE * growByPages,
NS_PAGEMGR_PAGE_SIZE * pageCount, NS_PAGEMGR_PAGE_SIZE * pageCount,
nsnull); nsnull);
if (NS_FAILED(rv)) { if (NS_FAILED(rv)) {
printf("failed to create buffer\n"); printf("failed to create buffer\n");
return rv; return rv;
@ -192,7 +192,7 @@ TestPageBuffers(PRUint32 growByPages, PRUint32 pageCount)
rv = NS_NewPageBuffer(&buffer, rv = NS_NewPageBuffer(&buffer,
NS_PAGEMGR_PAGE_SIZE * growByPages, NS_PAGEMGR_PAGE_SIZE * growByPages,
NS_PAGEMGR_PAGE_SIZE * pageCount, NS_PAGEMGR_PAGE_SIZE * pageCount,
nsnull); nsnull);
if (NS_FAILED(rv)) { if (NS_FAILED(rv)) {
printf("failed to create buffer\n"); printf("failed to create buffer\n");
return rv; return rv;

View File

@ -169,7 +169,7 @@ main(int argc, char* argv[])
} }
#endif #endif
// test for small buffers // 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)) { if (NS_FAILED(rv)) {
printf("NewPipe failed\n"); printf("NewPipe failed\n");
return -1; return -1;
@ -184,7 +184,7 @@ main(int argc, char* argv[])
} }
// test for large buffers // 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)) { if (NS_FAILED(rv)) {
printf("NewPipe failed\n"); printf("NewPipe failed\n");
return -1; return -1;