summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-12-04 13:21:07 +0100
committerHarald Welte <laforge@gnumonks.org>2017-12-05 18:43:14 +0000
commita6a40dcbfd36d40ab71322e75f8b08ea4933594f (patch)
treea9f1ff8560d3e9587d32742855e78249d79afc93 /tests
parent06dbdf59ebc87f32048748b822d8caa27dbee4a2 (diff)
Embedded: fix sercomm test
The external sercomm_drv_[un]lock() functions are defined as stubs in case of non-embedded build only which causes linking issue with sercomm_test. Let's define the same stubs in sercomm_test unconditionally - the implementation details of the locking are irrelevant for the test anyway. Related: OS#2708 Change-Id: I3dab4f3348871b66b5d6c9fd10b2e448c61f9e73
Diffstat (limited to 'tests')
-rw-r--r--tests/sercomm/sercomm_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/sercomm/sercomm_test.c b/tests/sercomm/sercomm_test.c
index 058c9eb4..4a40f627 100644
--- a/tests/sercomm/sercomm_test.c
+++ b/tests/sercomm/sercomm_test.c
@@ -27,6 +27,10 @@
struct osmo_sercomm_inst g_osi;
+/* Locking details are not checked by this test anyway */
+void sercomm_drv_lock(unsigned long __attribute__((unused)) *flags) {}
+void sercomm_drv_unlock(unsigned long __attribute__((unused)) *flags) {}
+
static const uint8_t valid_dlci3[] = { 0x7E, 3, 0x03, 'f', 'o', 'o', 0x7E };
static const uint8_t valid_dlci23[] = { 0x7E, 23, 0x03, '2', '3', 0x7E };
static const uint8_t valid_dlci23esc[] = { 0x7E, 23, 0x03, 0x7D, '2' ^ (1 << 5), '3', 0x7E };