Commits

Ronald Oussoren committed 3c6e22b

updates for working with MallocGuard

Comments (0)

Files changed (2)

Scripts/runPyObjCTests

 # expected failures in this text.
 HEADER="""\
 Running TestSuite for PyObjC %s
+Using Python %s
 
 NOTE: Loading the testcases takes some time.
 
 Expected test failures:
 - FAIL: test_CheckNSInvoke (objc.test.test_ctests.CTests)
   This checks for a bug in Cocoa on MacOS X 10.2, 10.3
-"""%(objc.__version__)
+- FAIL: test_TestArrayCoding (objc.test.test_ctests.CTests)
+  This checks for a bug/feature of Cocoa on MacOS X 10.2, should not 
+  occur on MacOS X 10.3 and later.
+"""%(objc.__version__, sys.version)
 
 def recursiveGlob(root, pathPattern):
     """

Scripts/runalltests

                 if not nm.endswith('.py'): continue
         	path = os.path.join(dirname, nm)
         	print "-- Running '%s'"%path
+
+                if 0:
+                    os.environ['DYLD_INSERT_LIBRARIES']='/usr/lib/libgmalloc.dylib'
+                    os.environ['DYLD_FORCE_FLAT_NAMESPACE']='1'
+
+
         	fd = os.popen("'%s' '%s' 2>&1"%(sys.executable, path), 'r')
                 ln = ''
                 for _ln in fd.xreadlines():
                     if _ln.startswith('Unable to retrieve information about SIGPIPE'): continue
 
                     # Debugging version of python
-                    if _ln.startswith('[') and _ln.endswith(' refs]\n'): continue
+                    if _ln[0] == '[' and _ln.endswith(' refs]\n'): continue
+
+                    # MallocGuard output
+                    if _ln.startswith('GuardMalloc-'): continue
+                    if _ln.startswith('Allocations will be placed on '):continue
+                    if _ln.startswith(' - Small buffer overruns may '): continue
+                    if _ln.startswith(' - Applications using AltiVec '):continue
 
                     ln = _ln
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.