def testLdconfigNoSubRoot(self):
        templdsoconf = StringIO.StringIO()
        def mkstemp(*args, **kwargs):
            return templdsoconf, 'ignoreme'
        def true(*args, **kwargs):
            return True
        def false(*args, **kwargs):
            return False
        def fdopen(*args, **kwargs):
            return args[0]
        def waitpid(*args, **kwargs):
            return True, 0
        templdsoconf.close = true

        self.mock(os.path, "isdir", true)
        self.mock(tempfile, "mkstemp", mkstemp)
        self.mock(os, "fdopen", fdopen)
        self.mock(os, "chmod", true)
        self.mock(os, "rename", true)
        self.mock(os, "fork", true)
        self.mock(os, "waitpid", waitpid)
        self.mock(util, "exists", false)
        self.mimicRoot()
        conary.local.update.shlibAction('/',
            ['/sir/not/appearing/on/this/system/libfoo.a'])
        self.realRoot()
        templdsoconf.seek(0)
        data = templdsoconf.read()
        self.assertEquals('/sir/not/appearing/on/this/system\n', data)
CNY-2982: no double leading / on entries
dataset/ETHPy150Open sassoftware/conary/conary_test/updatetest.py/UpdateTest.testLdconfigNoSubRoot