aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tbf
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-01-25 19:47:28 +0100
committerMax <msuraev@sysmocom.de>2018-01-25 19:54:57 +0100
commita296118e6d2b1e42b5e51e47467881598f9101f2 (patch)
tree68a38cb0a718886d6530030b437bbd047244e40a /tests/tbf
parent164b59d7578d549b2a04d151dd5ca35c452c515a (diff)
TBF: override send function via linker option
Use --wrap linker facility to override pcu_sock_send() similar to other Osmo* projects. Change-Id: Ia3d436bd3d1fb0ce8e98526bd7457f4c57667ceb
Diffstat (limited to 'tests/tbf')
-rw-r--r--tests/tbf/TbfTest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tbf/TbfTest.cpp b/tests/tbf/TbfTest.cpp
index 46863e36..aa1d7ac5 100644
--- a/tests/tbf/TbfTest.cpp
+++ b/tests/tbf/TbfTest.cpp
@@ -137,7 +137,9 @@ static void test_tbf_tlli_update()
static uint8_t llc_data[200];
-int pcu_sock_send(struct msgb *msg)
+/* override, requires '-Wl,--wrap=pcu_sock_send' */
+int __real_pcu_sock_send(struct msgb *msg);
+int __wrap_pcu_sock_send(struct msgb *msg)
{
return 0;
}