Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
791790ec
Commit
791790ec
authored
May 31, 2012
by
Tristan Matthews
Browse files
* #11841: don't put code with side effects in assert()
This code will not be evaluated if NDEBUG is defined
parent
796d60a8
Changes
4
Hide whitespace changes
Inline
Side-by-side
daemon/test/historytest.h
View file @
791790ec
...
...
@@ -34,8 +34,6 @@
#include
<cppunit/TestCase.h>
#include
<cppunit/TestSuite.h>
#include
<cassert>
// Application import
#include
"noncopyable.h"
...
...
daemon/test/numbercleanertest.h
View file @
791790ec
...
...
@@ -34,8 +34,6 @@
#include
<cppunit/TestCase.h>
#include
<cppunit/TestSuite.h>
#include
<assert.h>
// Application import
#include
"numbercleaner.h"
// #include "../src/conference.h"
...
...
daemon/test/sdesnegotiatortest.cpp
View file @
791790ec
...
...
@@ -32,7 +32,6 @@
#include
<stdio.h>
#include
<sstream>
#include
<ccrtp/rtp.h>
#include
<assert.h>
#include
<string>
#include
<cstring>
#include
<math.h>
...
...
daemon/test/sdptest.cpp
View file @
791790ec
...
...
@@ -118,9 +118,9 @@ void SDPTest::tearDown()
void
SDPTest
::
receiveAnswerAfterInitialOffer
(
const
pjmedia_sdp_session
*
remote
)
{
assert
(
pjmedia_sdp_neg_get_state
(
session_
->
negotiator_
)
==
PJMEDIA_SDP_NEG_STATE_LOCAL_OFFER
);
assert
(
pjmedia_sdp_neg_set_remote_answer
(
session_
->
memPool_
,
session_
->
negotiator_
,
remote
)
==
PJ_SUCCESS
);
assert
(
pjmedia_sdp_neg_get_state
(
session_
->
negotiator_
)
==
PJMEDIA_SDP_NEG_STATE_WAIT_NEGO
);
CPPUNIT_ASSERT
(
pjmedia_sdp_neg_get_state
(
session_
->
negotiator_
)
==
PJMEDIA_SDP_NEG_STATE_LOCAL_OFFER
);
CPPUNIT_ASSERT
(
pjmedia_sdp_neg_set_remote_answer
(
session_
->
memPool_
,
session_
->
negotiator_
,
remote
)
==
PJ_SUCCESS
);
CPPUNIT_ASSERT
(
pjmedia_sdp_neg_get_state
(
session_
->
negotiator_
)
==
PJMEDIA_SDP_NEG_STATE_WAIT_NEGO
);
}
void
SDPTest
::
testInitialOfferFirstCodec
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment