Changeset 79695 in webkit
- Timestamp:
- Feb 25, 2011 10:45:10 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/tests/testapi.c
r67129 r79695 33 33 #include <wtf/UnusedParam.h> 34 34 35 #if OS(WINDOWS) 36 #include <windows.h> 37 #endif 38 35 39 #if COMPILER(MSVC) 36 40 … … 820 824 int main(int argc, char* argv[]) 821 825 { 826 #if OS(WINDOWS) 827 // Cygwin calls ::SetErrorMode(SEM_FAILCRITICALERRORS), which we will inherit. This is bad for 828 // testing/debugging, as it causes the post-mortem debugger not to be invoked. We reset the 829 // error mode here to work around Cygwin's behavior. See <http://webkit.org/b/55222>. 830 ::SetErrorMode(0); 831 #endif 832 822 833 const char *scriptPath = "testapi.js"; 823 834 if (argc > 1) { -
trunk/Source/JavaScriptCore/ChangeLog
r79646 r79695 1 2011-02-25 Adam Roben <aroben@apple.com> 2 3 Work around Cygwin's crash-suppression behavior 4 5 Cygwin calls ::SetErrorMode(SEM_FAILCRITICALERRORS), which any processes it launches will 6 inherit. This is bad for testing/debugging, as it causes the post-mortem debugger not to be 7 invoked. (Cygwin does this because it makes crashes more UNIX-y.) We reset the error mode 8 when our test apps launch to work around Cygwin's behavior. 9 10 Fixes <http://webkit.org/b/55222> Test apps crash silently (without invoking post-mortem 11 debugger) when launched from Cygwin 1.7 12 13 Reviewed by Darin Adler. 14 15 * API/tests/testapi.c: Added a now-needed #include. 16 (main): 17 * jsc.cpp: 18 (main): 19 Call ::SetErrorMode(0) to undo Cygwin's folly. 20 21 * JavaScriptCore.vcproj/testapi/testapiCommon.vsprops: Define NOMINMAX like many of our 22 other projects do so that windows.h won't define min/max macros that interfere with 23 std::numeric_limits<T>::min/max. 24 1 25 2011-02-24 Adam Barth <abarth@webkit.org> 2 26 -
trunk/Source/JavaScriptCore/JavaScriptCore.vcproj/testapi/testapiCommon.vsprops
r75138 r79695 8 8 Name="VCCLCompilerTool" 9 9 AdditionalIncludeDirectories=""$(ProjectDir)\..\..\API";"$(ConfigurationBuildDir)\include\WebCore\ForwardingHeaders";"$(ConfigurationBuildDir)\include\JavaScriptCore";"$(ConfigurationBuildDir)\include\private\JavaScriptCore";"$(ConfigurationBuildDir)\include";"$(ConfigurationBuildDir)\include\private";"$(WebKitLibrariesDir)\include";"$(WebKitLibrariesDir)\include\private"" 10 PreprocessorDefinitions="NOMINMAX" 10 11 WarningLevel="4" 11 12 Detect64BitPortabilityProblems="true" -
trunk/Source/JavaScriptCore/jsc.cpp
r79177 r79695 325 325 int main(int argc, char** argv) 326 326 { 327 #if defined(_DEBUG) && OS(WINDOWS) 327 #if OS(WINDOWS) 328 // Cygwin calls ::SetErrorMode(SEM_FAILCRITICALERRORS), which we will inherit. This is bad for 329 // testing/debugging, as it causes the post-mortem debugger not to be invoked. We reset the 330 // error mode here to work around Cygwin's behavior. See <http://webkit.org/b/55222>. 331 ::SetErrorMode(0); 332 333 #if defined(_DEBUG) 328 334 _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR); 329 335 _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE); … … 332 338 _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR); 333 339 _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE); 340 #endif 334 341 #endif 335 342 -
trunk/Tools/ChangeLog
r79668 r79695 1 2011-02-25 Adam Roben <aroben@apple.com> 2 3 Work around Cygwin's crash-suppression behavior 4 5 Cygwin calls ::SetErrorMode(SEM_FAILCRITICALERRORS), which any processes it launches will 6 inherit. This is bad for testing/debugging, as it causes the post-mortem debugger not to be 7 invoked. (Cygwin does this because it makes crashes more UNIX-y.) We reset the error mode 8 when our test apps launch to work around Cygwin's behavior. 9 10 Fixes <http://webkit.org/b/55222> Test apps crash silently (without invoking post-mortem 11 debugger) when launched from Cygwin 1.7 12 13 Reviewed by Darin Adler. 14 15 * DumpRenderTree/win/DumpRenderTree.cpp: 16 (main): 17 * TestWebKitAPI/win/main.cpp: 18 (main): 19 * WebKitAPITest/main.cpp: 20 (main): 21 * WebKitTestRunner/win/TestControllerWin.cpp: 22 (WTR::TestController::platformInitialize): 23 Call ::SetErrorMode(0) to undo Cygwin's folly. 24 1 25 2011-02-24 Jocelyn Turcotte <jocelyn.turcotte@nokia.com> 2 26 -
trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp
r79586 r79695 1259 1259 int main(int argc, char* argv[]) 1260 1260 { 1261 // Cygwin calls ::SetErrorMode(SEM_FAILCRITICALERRORS), which we will inherit. This is bad for 1262 // testing/debugging, as it causes the post-mortem debugger not to be invoked. We reset the 1263 // error mode here to work around Cygwin's behavior. See <http://webkit.org/b/55222>. 1264 ::SetErrorMode(0); 1265 1261 1266 ::SetUnhandledExceptionFilter(exceptionFilter); 1262 1267 -
trunk/Tools/TestWebKitAPI/win/main.cpp
r69656 r79695 28 28 int main(int argc, const char* argv[]) 29 29 { 30 // Cygwin calls ::SetErrorMode(SEM_FAILCRITICALERRORS), which we will inherit. This is bad for 31 // testing/debugging, as it causes the post-mortem debugger not to be invoked. We reset the 32 // error mode here to work around Cygwin's behavior. See <http://webkit.org/b/55222>. 33 ::SetErrorMode(0); 34 30 35 bool passed = true; 31 36 -
trunk/Tools/WebKitAPITest/main.cpp
r52753 r79695 29 29 int main(int, char*[]) 30 30 { 31 // Cygwin calls ::SetErrorMode(SEM_FAILCRITICALERRORS), which we will inherit. This is bad for 32 // testing/debugging, as it causes the post-mortem debugger not to be invoked. We reset the 33 // error mode here to work around Cygwin's behavior. See <http://webkit.org/b/55222>. 34 ::SetErrorMode(0); 35 31 36 // FIXME: Remove this line once <http://webkit.org/b/32867> is fixed. 32 37 OleInitialize(0); -
trunk/Tools/WebKitTestRunner/win/TestControllerWin.cpp
r76559 r79695 97 97 void TestController::platformInitialize() 98 98 { 99 // Cygwin calls ::SetErrorMode(SEM_FAILCRITICALERRORS), which we will inherit. This is bad for 100 // testing/debugging, as it causes the post-mortem debugger not to be invoked. We reset the 101 // error mode here to work around Cygwin's behavior. See <http://webkit.org/b/55222>. 102 ::SetErrorMode(0); 103 99 104 ::SetUnhandledExceptionFilter(exceptionFilter); 100 105
Note: See TracChangeset
for help on using the changeset viewer.