зеркало из https://github.com/mozilla/pjs.git
Bug 518881: Fix unused-result warnings in IPDL/C++ unit tests.
This commit is contained in:
Родитель
784888920c
Коммит
3853bf3560
|
@ -47,7 +47,8 @@ void
|
|||
TestLatencyParent::PingPongTrial()
|
||||
{
|
||||
mStart = TimeStamp::Now();
|
||||
SendPing();
|
||||
if (!SendPing())
|
||||
fail("sending Ping()");
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -57,11 +58,12 @@ TestLatencyParent::Ping5Pong5Trial()
|
|||
// HACK
|
||||
mPongsToGo = 5;
|
||||
|
||||
SendPing5();
|
||||
SendPing5();
|
||||
SendPing5();
|
||||
SendPing5();
|
||||
SendPing5();
|
||||
if (!SendPing5() ||
|
||||
!SendPing5() ||
|
||||
!SendPing5() ||
|
||||
!SendPing5() ||
|
||||
!SendPing5())
|
||||
fail("sending Ping5()");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -28,7 +28,8 @@ MediateRace(const RPCChannel::Message& parent,
|
|||
void
|
||||
TestRPCRacesParent::Main()
|
||||
{
|
||||
SendStart();
|
||||
if (!SendStart())
|
||||
fail("sending Start()");
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
@ -56,7 +56,8 @@ TestRacyRPCRepliesParent::Answer_R(int* replyNum)
|
|||
*replyNum = ++mReplyNum;
|
||||
|
||||
if (1 == *replyNum)
|
||||
Send_A();
|
||||
if (!Send_A())
|
||||
fail("sending _A()");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -8,7 +8,8 @@ namespace _ipdltest {
|
|||
void
|
||||
TestShutdownParent::Main()
|
||||
{
|
||||
SendStart();
|
||||
if (!SendStart())
|
||||
fail("sending Start()");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Загрузка…
Ссылка в новой задаче