Modify captived
integration tests so they are not machine-dependent.
#98
Labels
captived
integration tests so they are not machine-dependent.
#98
The
captived
integration tests behave differently depending on the machine that is used to run them.Specifically, the network interface status is different because some machines don't have wireless lan.
Currently, we the tests don't validate the fields that could differ.
From @drbild :
The simplest method for "mocking" C library calls is to use the linker wrap functionality. See option 1 here: https://stackoverflow.com/a/2925879
But yeah, that will take a bit of work to set up.
Take a look at my ip -br thought in my other comment before making a final decision, but I'm ok with any of the three options:
I added code to mock the interface data, but changed course for expediency. The code is on the branch:
https://github.com/glfejer/xaprc/tree/mock-getifaddrs
The problem was that mac osx linker does not support the --wrap option.
The text was updated successfully, but these errors were encountered: