fixes to get the test running under linux, mac stuff still missing

This commit is contained in:
andreas.otte%primus-online.de 1999-06-03 18:12:13 +00:00
Родитель 4be3dd872f
Коммит 12f1f2604a
1 изменённых файлов: 10 добавлений и 5 удалений

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

@ -179,9 +179,6 @@ TestWriteObserver::OnStopBinding(nsISupports* context,
}
int
main(int argc, char* argv[])
{
@ -244,7 +241,6 @@ main(int argc, char* argv[])
rv = outStr->Close();
#else
if (NS_SUCCEEDED(rv)) {
TestWriteObserver* observer = new TestWriteObserver(transport);
@ -257,8 +253,11 @@ main(int argc, char* argv[])
if (NS_FAILED(rv)) return rv;
PLEvent *gEvent;
// Enter the message pump to allow the URL load to proceed.
while ( gKeepRunning ) {
#ifdef WIN32
MSG msg;
@ -268,10 +267,16 @@ main(int argc, char* argv[])
} else {
gKeepRunning = FALSE;
}
#else
#ifdef XP_MAC
/* Mac stuff is missing here! */
#else
rv = gEventQ->GetEvent(&gEvent);
PL_HandleEvent(gEvent);
#endif
#endif
}
PRTime endTime;
endTime = PR_Now();
printf("Elapsed time: %ld\n", (PRInt32)(endTime/1000UL-gElapsedTime/1000UL));