Changeset 79695 in webkit for trunk/Source/JavaScriptCore
- Timestamp:
- Feb 25, 2011, 10:45:10 AM (14 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 4 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 <[email protected]> 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 <[email protected]> 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
Note:
See TracChangeset
for help on using the changeset viewer.