rv = TestAsyncOpen(fileName, 10, 100); NS_ASSERTION(NS_SUCCEEDED(rv), "TestAsyncOpen failed");  NS_RELEASE(gEventQ);
main(int argc, char* argv[]){    nsresult rv;    if (argc < 2) {        printf("usage: %s <file-to-read>\n", argv[0]);        return -1;    }    char* fileName = argv[1];    rv = NS_AutoregisterComponents();    if (NS_FAILED(rv)) return rv;    rv = TestAsyncRead(fileName, 0, -1);    NS_ASSERTION(NS_SUCCEEDED(rv), "TestAsyncRead failed");    rv = TestAsyncWrite(fileName, 0, -1);    NS_ASSERTION(NS_SUCCEEDED(rv), "TestAsyncWrite failed");    rv = TestAsyncRead(fileName, 10, 100);    NS_ASSERTION(NS_SUCCEEDED(rv), "TestAsyncRead failed");    return NS_OK;}