예제 #1
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)
예제 #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
예제 #3
0
 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
예제 #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)