Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(927)

Side by Side Diff: test/cctest/test-debug.cc

Issue 456: Disable three debug tests that failed because they rely on wrong for-in order... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« test/cctest/cctest.cc ('K') | « test/cctest/cctest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2007-2008 Google Inc. All Rights Reserved. 1 // Copyright 2007-2008 Google Inc. All Rights Reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2838 matching lines...) Expand 10 before | Expand all | Expand 10 after
2849 // Wait on break event after a single step executes. 2849 // Wait on break event after a single step executes.
2850 message_queue_barriers.semaphore_2->Wait(); 2850 message_queue_barriers.semaphore_2->Wait();
2851 v8::Debug::SendCommand(buffer_1, AsciiToUtf16(command_2, buffer_1)); 2851 v8::Debug::SendCommand(buffer_1, AsciiToUtf16(command_2, buffer_1));
2852 v8::Debug::SendCommand(buffer_2, AsciiToUtf16(command_continue, buffer_2)); 2852 v8::Debug::SendCommand(buffer_2, AsciiToUtf16(command_continue, buffer_2));
2853 // Main thread continues running source_3 to end, waits for this thread. 2853 // Main thread continues running source_3 to end, waits for this thread.
2854 } 2854 }
2855 2855
2856 MessageQueueDebuggerThread message_queue_debugger_thread; 2856 MessageQueueDebuggerThread message_queue_debugger_thread;
2857 2857
2858 // This thread runs the v8 engine. 2858 // This thread runs the v8 engine.
2859 TEST(MessageQueues) { 2859 DISABLED_TEST(MessageQueues) {
2860 // Create a V8 environment 2860 // Create a V8 environment
2861 v8::HandleScope scope; 2861 v8::HandleScope scope;
2862 DebugLocalContext env; 2862 DebugLocalContext env;
2863 message_queue_barriers.Initialize(); 2863 message_queue_barriers.Initialize();
2864 v8::Debug::SetMessageHandler(MessageHandler); 2864 v8::Debug::SetMessageHandler(MessageHandler);
2865 message_queue_debugger_thread.Start(); 2865 message_queue_debugger_thread.Start();
2866 2866
2867 const char* source_1 = "a = 3; b = 4; c = new Object(); c.d = 5;"; 2867 const char* source_1 = "a = 3; b = 4; c = new Object(); c.d = 5;";
2868 const char* source_2 = "e = 17;"; 2868 const char* source_2 = "e = 17;";
2869 const char* source_3 = "a = 4; debugger; a = 5; a = 6; a = 7;"; 2869 const char* source_3 = "a = 4; debugger; a = 5; a = 6; a = 7;";
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
2954 threaded_debugging_barriers.barrier_1.Wait(); 2954 threaded_debugging_barriers.barrier_1.Wait();
2955 v8::Debug::DebugBreak(); 2955 v8::Debug::DebugBreak();
2956 threaded_debugging_barriers.barrier_2.Wait(); 2956 threaded_debugging_barriers.barrier_2.Wait();
2957 v8::Debug::SendCommand(buffer, AsciiToUtf16(command_1, buffer)); 2957 v8::Debug::SendCommand(buffer, AsciiToUtf16(command_1, buffer));
2958 v8::Debug::SendCommand(buffer, AsciiToUtf16(command_2, buffer)); 2958 v8::Debug::SendCommand(buffer, AsciiToUtf16(command_2, buffer));
2959 } 2959 }
2960 2960
2961 DebuggerThread debugger_thread; 2961 DebuggerThread debugger_thread;
2962 V8Thread v8_thread; 2962 V8Thread v8_thread;
2963 2963
2964 TEST(ThreadedDebugging) { 2964 DISABLED_TEST(ThreadedDebugging) {
2965 // Create a V8 environment 2965 // Create a V8 environment
2966 threaded_debugging_barriers.Initialize(); 2966 threaded_debugging_barriers.Initialize();
2967 2967
2968 v8_thread.Start(); 2968 v8_thread.Start();
2969 debugger_thread.Start(); 2969 debugger_thread.Start();
2970 2970
2971 v8_thread.Join(); 2971 v8_thread.Join();
2972 debugger_thread.Join(); 2972 debugger_thread.Join();
2973 } 2973 }
2974 2974
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
3113 breakpoints_barriers->semaphore_1->Wait(); // wait for break event 3113 breakpoints_barriers->semaphore_1->Wait(); // wait for break event
3114 // 8: Evaluate dog() with breaks disabled 3114 // 8: Evaluate dog() with breaks disabled
3115 v8::Debug::SendCommand(buffer, AsciiToUtf16(command_8, buffer)); 3115 v8::Debug::SendCommand(buffer, AsciiToUtf16(command_8, buffer));
3116 // 9: Continue evaluation of source2, reach end. 3116 // 9: Continue evaluation of source2, reach end.
3117 v8::Debug::SendCommand(buffer, AsciiToUtf16(command_9, buffer)); 3117 v8::Debug::SendCommand(buffer, AsciiToUtf16(command_9, buffer));
3118 } 3118 }
3119 3119
3120 BreakpointsDebuggerThread breakpoints_debugger_thread; 3120 BreakpointsDebuggerThread breakpoints_debugger_thread;
3121 BreakpointsV8Thread breakpoints_v8_thread; 3121 BreakpointsV8Thread breakpoints_v8_thread;
3122 3122
3123 TEST(RecursiveBreakpoints) { 3123 DISABLED_TEST(RecursiveBreakpoints) {
3124 // Create a V8 environment 3124 // Create a V8 environment
3125 Barriers stack_allocated_breakpoints_barriers; 3125 Barriers stack_allocated_breakpoints_barriers;
3126 stack_allocated_breakpoints_barriers.Initialize(); 3126 stack_allocated_breakpoints_barriers.Initialize();
3127 breakpoints_barriers = &stack_allocated_breakpoints_barriers; 3127 breakpoints_barriers = &stack_allocated_breakpoints_barriers;
3128 3128
3129 breakpoints_v8_thread.Start(); 3129 breakpoints_v8_thread.Start();
3130 breakpoints_debugger_thread.Start(); 3130 breakpoints_debugger_thread.Start();
3131 3131
3132 breakpoints_v8_thread.Join(); 3132 breakpoints_v8_thread.Join();
3133 breakpoints_debugger_thread.Join(); 3133 breakpoints_debugger_thread.Join();
3134 } 3134 }
OLDNEW
« test/cctest/cctest.cc ('K') | « test/cctest/cctest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698