When running the test Database › Query logging on Windows, I get the two failed tests:
Correct function in query log. Other database_test.test 1718 DatabaseLoggingTestCase->testEnableLogging()
Correct function in query log. Other database_test.test 1718 DatabaseLoggingTestCase->testEnableLogging()
This is because the filenames returned by debug_backtrace() contain backslashes, e.g.
D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\drupal\includes\database\log.inc.
The attached patch fixes the problem. I chose this solution because of its readability.
Comments
Comment #1
Crell commentedWell bah. Wouldn't it be better to use DIRECTORY_SEPARATOR instead, though, to be properly cross-platform?
Comment #2
c960657 commentedYes, that is better.
Comment #3
Crell commentedCode looks good visually. I've not tested it yet, but it's simple enough that it hardly needs extensive testing.
Comment #4
Crell commentedPatch applies and tests still run properly under Linux. I have no Windows box to test on, but I see no way in which it would fail there with this patch. Thanks, c!
Comment #5
dries commentedCommitted to CVS HEAD. Thanks!
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.