j0r1 / JRTPLIB

RTP Library
MIT License
581 stars 220 forks source link

getloginrtest wont work #40

Open lattice0 opened 5 years ago

lattice0 commented 5 years ago

jrtplib_test_feature(getloginrtest RTP_SUPPORT_GETLOGINR FALSE "// Not using getlogin_r" "${TESTDEFS}")

fails

getloginrtest.cpp compiles on docker, but won't run on docker, because there's no user

I even tried setting an user, but it won't work

j0r1 commented 5 years ago

I don't understand the problem. In the CMakeLists.txt, jrtplib_test_feature only checks if it compiles, not that it runs.

Is the problem that your program does compile, but that it can't create an RTPSession because there's no user? In that case, either set the LOGNAME environment variable, or force the entire CNAME using the session parameters.