summaryrefslogtreecommitdiff
path: root/test/test_init.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_init.cc')
-rw-r--r--test/test_init.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/test_init.cc b/test/test_init.cc
index 3281183..13ca874 100644
--- a/test/test_init.cc
+++ b/test/test_init.cc
@@ -50,12 +50,10 @@ public:
CPPUNIT_ASSERT(lrtp);
unsigned int csrc = 42;
- struct lrtp_profile_t *profile =
- lrtp_create_profile(lrtp, PROFILE_RAW, csrc,
- OPTION_RAW_PKG_SIZE, 100,
- OPTION_END);
-
- CPPUNIT_ASSERT(profile);
+ int x = lrtp_create_profile(lrtp, PROFILE_RAW, csrc,
+ OPTION_RAW_PKG_SIZE, 100,
+ OPTION_END);
+ CPPUNIT_ASSERT_EQUAL(0, x);
lrtp_destroy_profile(lrtp, csrc);