def _test(stat_mock):
     from autotest.client.os_dep import Ldconfig
     l = Ldconfig()
     l._add_dir("asdf=glibc2")
     assert l.lddirs[0] == Ldconfig.DirEntry("asdf", "glibc2", 2, 2)
     l._add_dir("qwer%s      =glibc2" % os.sep)
     assert l.lddirs[1] == Ldconfig.DirEntry("qwer", "glibc2", 3, 3)
Exemple #2
0
 def _test(stat_mock):
     from autotest.client.os_dep import Ldconfig
     ldconfig = Ldconfig()
     ldconfig._add_dir("asdf")
     assert ldconfig.lddirs[0] == Ldconfig.DirEntry("asdf", "", 2, 2)
     assert ldconfig.lddirs[0].path == "asdf"
     assert ldconfig.lddirs[0].flag == ""
     assert ldconfig.lddirs[0].ino == 2
     assert ldconfig.lddirs[0].dev == 2
 def _test(stat_mock):
     from autotest.client.os_dep import Ldconfig
     l = Ldconfig()
     l._add_dir("asdf")
     assert l.lddirs[0] == Ldconfig.DirEntry("asdf", "", 2, 2)
     assert l.lddirs[0].path == "asdf"
     assert l.lddirs[0].flag == ""
     assert l.lddirs[0].ino == 2
     assert l.lddirs[0].dev == 2
Exemple #4
0
 def _test(stat_mock):
     from autotest.client.os_dep import Ldconfig
     l = Ldconfig()
     l._add_dir("asdf=glibc2")
     assert l.lddirs[0] == Ldconfig.DirEntry("asdf", "glibc2", 2, 2)
     l._add_dir("qwer%s      =glibc2" % os.sep)
     assert l.lddirs[1] == Ldconfig.DirEntry("qwer", "glibc2", 3, 3)