On Mon, Jul 23, 2018 at 10:01:26AM +0200, Jakub Hrozek wrote:
Unfortunately these tests don’t have an option to raise the debug
level so stepping throught them with gdb is the only option I’m afraid..
I think I didn't properly mock sss_nss_make_request_timeout() here.
Instead of the provided call which just mock the results the original
one is used which tries to talk to SSSD which either does not run or
does not know about the test user, hence the return code 0x02 (ENOENT).
If you run the test with strace you should see that the test program
tries to connect to /var/lib/sss/pipes/nss which is not expected. I'll
try to fix this.
bye,
Sumit
>
> > On 20 Jul 2018, at 20:56, Andreas Hasenack <andreas(a)canonical.com> wrote:
> >
> > What I figured out so far is that this is a test that is enabled if
> > you have cmocka installed, and this is the first time I had that.
> > On Fri, Jul 20, 2018 at 2:22 PM Andreas Hasenack <andreas(a)canonical.com>
wrote:
> >>
> >> Hi,
> >>
> >> I'm building 1.16.2 with just
> >>
https://pagure.io/SSSD/sssd/c/a2cc554f438c220b3cc73eb93879dd87795a86cd?br...
> >> applied (without it, it doesn't build in Ubuntu currently) and I'm
> >> seeing this test failure:
> >>
> >> [==========] Running 2 test(s).
> >> [ RUN ] test_getsidbyname
> >> [ ERROR ] --- 0x2 != 0
> >> [ LINE ] --- ../src/tests/cmocka/sss_nss_idmap-tests.c:121: error:
Failure!
> >> [ FAILED ] test_getsidbyname
> >> [ RUN ] test_getorigbyname
> >> [ ERROR ] --- 0x2 != 0
> >> [ LINE ] --- ../src/tests/cmocka/sss_nss_idmap-tests.c:140: error:
Failure!
> >> [ FAILED ] test_getorigbyname
> >> [==========] 2 test(s) run.
> >> [ PASSED ] 0 test(s).
> >> [ FAILED ] 2 test(s), listed below:
> >> [ FAILED ] test_getsidbyname
> >> [ FAILED ] test_getorigbyname
> >>
> >> 2 FAILED TEST(S)
> >> FAIL sss_nss_idmap-tests (exit status: 2)
> >>
> >> I tried with samba 4.7.6 and 4.8.2 installed, and also with
> >> --with-smb-idmap-interface-version 5 and 6, same result. Debian is at
> >> 1.16.2 and the tests pass there just fine, so I think I'm looking at
> >> some dependency problem.
> >> ldb is 1.3.1
> >> tdb is 1.3.15
> >>
> >> Any pointers? Maybe a way to run just that test, so I can add
> >> debugging statements?
> >>
> >> Thanks!
> > _______________________________________________
> > sssd-users mailing list -- sssd-users(a)lists.fedorahosted.org
> > To unsubscribe send an email to sssd-users-leave(a)lists.fedorahosted.org
> > Fedora Code of Conduct:
https://getfedora.org/code-of-conduct.html
> > List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
> > List Archives:
https://lists.fedoraproject.org/archives/list/sssd-users@lists.fedorahost...
> _______________________________________________
> sssd-users mailing list -- sssd-users(a)lists.fedorahosted.org
> To unsubscribe send an email to sssd-users-leave(a)lists.fedorahosted.org
> Fedora Code of Conduct:
https://getfedora.org/code-of-conduct.html
> List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
https://lists.fedoraproject.org/archives/list/sssd-users@lists.fedorahost...