neels has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-upf/+/27638 )
Change subject: add pfcp msg test ......................................................................
Patch Set 4:
(1 comment)
File tests/libosmo-pfcp/pfcp_test.c:
https://gerrit.osmocom.org/c/osmo-upf/+/27638/comment/46a051af_487b3833 PS4, Line 42: const struct osmo_sockaddr v4_gtp = { I have a problem now. You can see v4_gtp is const. (also tried with static const) At home with gcc (Debian 8.3.0-6) 8.3.0 it compiles fine. Jenkins however says:
pfcp_test.c:61:10: error: initializer element is not constant .v4 = v4_gtp, ^~~~~~
Same for a couple more similar cases below.
stackoverflow suggests these should be #defines instead. any better idea anyone?