minor tweak to the still-not-done news parser test

This commit is contained in:
sspitzer%netscape.com 1999-04-10 21:56:55 +00:00
Родитель a210da59a9
Коммит 8178791847
1 изменённых файлов: 7 добавлений и 11 удалений

Просмотреть файл

@ -16,13 +16,6 @@
* Reserved.
*/
/*=============================================================================
* This test program is designed to test the berkeley mailbox parser.
* When the test program starts up, you are prompted for a mailbox name.
* The code will then generate a stream of data for the mailbox parser.
*===============================================================================*/
#include <stdio.h>
#include <assert.h>
@ -94,10 +87,13 @@ nsresult newsTestDriver::RunDriver(nsFileSpec &folder)
nsIMsgDatabase *newsDB = nsnull;
rv = nsComponentManager::CreateInstance(kCNewsDB, nsnull, nsIMsgDatabase::GetIID(), (void **) &newsDB);
if (NS_SUCCEEDED(rv) && newsDB)
{
rv = newsDB->Open(folder, PR_TRUE, (nsIMsgDatabase **) &m_newsDB, PR_FALSE);
newsDB->Release();
}
{
rv = newsDB->Open(folder, PR_TRUE, (nsIMsgDatabase **) &m_newsDB, PR_FALSE);
newsDB->Release();
}
else {
printf("CreateInstance failed. %d\n", rv);
}
return status;
}