test-ranap: don't use libosmocore's tall_msgb_ctx
Use msgb_ctx from test_common.c instead, which is the same pointer after test_common_init() ran. tall_msgb_ctx from libosmocore is no longer getting exported since I13169c00a59fb59513dfc598de5a71d094492422. Fix for: /usr/bin/ld: test-ranap.o: in function `main': /build/src/tests/test-ranap.c:201: undefined reference to `tall_msgb_ctx' /usr/bin/ld: /build/src/tests/test-ranap.c:201: undefined reference to `tall_msgb_ctx' Change-Id: I7d0b3068760c2cd7067e2a5d929f03c7e7d1decb
This commit is contained in:
parent
409d497eea
commit
c61a74f6c4
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
#include "test_common.h"
|
#include "test_common.h"
|
||||||
|
|
||||||
extern void *tall_msgb_ctx;
|
extern void *msgb_ctx;
|
||||||
|
|
||||||
static void test_aper_int(uint32_t inp)
|
static void test_aper_int(uint32_t inp)
|
||||||
{
|
{
|
||||||
|
@ -198,7 +198,7 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
printf("report\n");
|
printf("report\n");
|
||||||
talloc_report(talloc_asn1_ctx, stdout);
|
talloc_report(talloc_asn1_ctx, stdout);
|
||||||
talloc_report(tall_msgb_ctx, stdout);
|
talloc_report(msgb_ctx, stdout);
|
||||||
//talloc_report(NULL, stdout);
|
//talloc_report(NULL, stdout);
|
||||||
|
|
||||||
test_common_cleanup();
|
test_common_cleanup();
|
||||||
|
|
|
@ -71,7 +71,7 @@ static const struct log_info test_log_info = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static void *tall_hnb_ctx;
|
static void *tall_hnb_ctx;
|
||||||
static void *msgb_ctx;
|
void *msgb_ctx;
|
||||||
|
|
||||||
int test_common_init(void)
|
int test_common_init(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue