Commit 0b66b63b authored by mjs's avatar mjs

Top level:

	* Tests/harness.c: (runtest): Run regression tests with debug
	frameworks. If they pass, run them again so the leak checker
	actually works (it never finds leaks with the debug frameworks in
	use).

	Fix regression test failures:

	* Tests/CookieManager/wkcookie-test.m: (main):
	* Tests/WebFoundation-Misc/ifnsobjectextensions-test.m: (main):
WebCore:
	* src/kwq/KWQString.mm: (QString::fill): Fix a bug that was
	triggering assertion failures in CF.

	* src/kdelibs/kjs/kjs-test: Turn off some environment variables to
	make the tests pass.
WebFoundation:
	* Misc.subproj/IFNSStringExtensions.m: (-[NSString
	parseAsKeyValuePairHandleQuotes:]): Fix a bug that was leading to
	an assertion failure.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@654 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6acf0d5f
#!/bin/sh
unsetenv MallocStackLogging
unsetenv MallocScribble
unsetenv MallocGuardEdges
unset MallocStackLogging
export MallocStackLogging
unset MallocScribble
export MallocScribble
unset MallocGuardEdges
export MallocGuardEdges
unset DYLD_IMAGE_SUFFIX
export DYLD_IMAGE_SUFFIX
`dirname $0`/testkjs `dirname $0`/test.js 2>&1
......
2002-02-21 Maciej Stachowiak <mjs@apple.com>
* src/kwq/KWQString.mm: (QString::fill): Fix a bug that was
triggering assertion failures in CF.
* src/kdelibs/kjs/kjs-test: Turn off some environment variables to
make the tests pass.
2002-02-21 Richard Williamson <rjw@apple.com>
Stop mostly working.
......
2002-02-21 Maciej Stachowiak <mjs@apple.com>
* src/kwq/KWQString.mm: (QString::fill): Fix a bug that was
triggering assertion failures in CF.
* src/kdelibs/kjs/kjs-test: Turn off some environment variables to
make the tests pass.
2002-02-21 Richard Williamson <rjw@apple.com>
Stop mostly working.
......
2002-02-21 Maciej Stachowiak <mjs@apple.com>
* src/kwq/KWQString.mm: (QString::fill): Fix a bug that was
triggering assertion failures in CF.
* src/kdelibs/kjs/kjs-test: Turn off some environment variables to
make the tests pass.
2002-02-21 Richard Williamson <rjw@apple.com>
Stop mostly working.
......
......@@ -1208,13 +1208,17 @@ void QString::fill(QChar qc, int len)
ucs[i] = qc.c;
}
s = CFStringCreateMutableWithExternalCharactersNoCopy(
kCFAllocatorDefault, ucs, len, 0, kCFAllocatorDefault);
kCFAllocatorDefault, ucs, len, len, kCFAllocatorDefault);
if (!s) {
#ifdef KWQ_STRING_DEBUG
#else
CFAllocatorDeallocate(kCFAllocatorDefault, ucs);
#endif
}
} else {
CFMutableStringRef tmp = CFStringCreateMutableCopy(kCFAllocatorDefault, 0, s);
CFRelease(s);
s = tmp;
}
}
}
}
......
#!/bin/sh
unsetenv MallocStackLogging
unsetenv MallocScribble
unsetenv MallocGuardEdges
unset MallocStackLogging
export MallocStackLogging
unset MallocScribble
export MallocScribble
unset MallocGuardEdges
export MallocGuardEdges
unset DYLD_IMAGE_SUFFIX
export DYLD_IMAGE_SUFFIX
`dirname $0`/testkjs `dirname $0`/test.js 2>&1
......
......@@ -1208,13 +1208,17 @@ void QString::fill(QChar qc, int len)
ucs[i] = qc.c;
}
s = CFStringCreateMutableWithExternalCharactersNoCopy(
kCFAllocatorDefault, ucs, len, 0, kCFAllocatorDefault);
kCFAllocatorDefault, ucs, len, len, kCFAllocatorDefault);
if (!s) {
#ifdef KWQ_STRING_DEBUG
#else
CFAllocatorDeallocate(kCFAllocatorDefault, ucs);
#endif
}
} else {
CFMutableStringRef tmp = CFStringCreateMutableCopy(kCFAllocatorDefault, 0, s);
CFRelease(s);
s = tmp;
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment