Exemplo n.º 1
0
    def testAtos(self):
        NSThread = objc.lookUpClass("NSThread")
        v = " ".join(hex(x) for x in NSThread.callStackReturnAddresses())
        fp = Debugging._run_atos(v)
        value = fp.read()
        fp.close()

        self.assertTrue(any(x in value for x in {"_objc.", "ffi_call_unix64"}))
Exemplo n.º 2
0
    def testAtos(self):
        NSThread = objc.lookUpClass("NSThread")
        v = " ".join(hex(x) for x in NSThread.callStackReturnAddresses())
        fp = Debugging._run_atos(v)
        value = fp.read()
        fp.close()

        self.assertIn("_objc.", value)