OLD | NEW |
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 the V8 project authors. 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 3806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3817 // running some code. | 3817 // running some code. |
3818 v8::Debug::SendHostDispatch(NULL); | 3818 v8::Debug::SendHostDispatch(NULL); |
3819 v8::Debug::SendCommand(buffer, AsciiToUtf16(command_continue, buffer)); | 3819 v8::Debug::SendCommand(buffer, AsciiToUtf16(command_continue, buffer)); |
3820 CompileRun("void 0"); | 3820 CompileRun("void 0"); |
3821 | 3821 |
3822 // The host dispatch callback should be called. | 3822 // The host dispatch callback should be called. |
3823 CHECK_EQ(1, host_dispatch_hit_count); | 3823 CHECK_EQ(1, host_dispatch_hit_count); |
3824 } | 3824 } |
3825 | 3825 |
3826 | 3826 |
3827 // This test fails on some Linux versions - disabled for now. | |
3828 #if 0 | |
3829 TEST(DebuggerAgent) { | 3827 TEST(DebuggerAgent) { |
3830 // Make sure this port is not used by other tests to allow tests to run in | 3828 // Make sure this port is not used by other tests to allow tests to run in |
3831 // parallel. | 3829 // parallel. |
3832 const int kPort = 5858; | 3830 const int kPort = 5858; |
3833 | 3831 |
3834 // Make a string with the port number. | 3832 // Make a string with the port number. |
3835 const int kPortBuferLen = 6; | 3833 const int kPortBuferLen = 6; |
3836 char port_str[kPortBuferLen]; | 3834 char port_str[kPortBuferLen]; |
3837 OS::SNPrintF(i::Vector<char>(port_str, kPortBuferLen), "%d", kPort); | 3835 OS::SNPrintF(i::Vector<char>(port_str, kPortBuferLen), "%d", kPort); |
3838 | 3836 |
(...skipping 19 matching lines...) Expand all Loading... |
3858 // Test starting and stopping the agent with the required port already | 3856 // Test starting and stopping the agent with the required port already |
3859 // occoupied. | 3857 // occoupied. |
3860 i::Socket* server = i::OS::CreateSocket(); | 3858 i::Socket* server = i::OS::CreateSocket(); |
3861 server->Bind(kPort); | 3859 server->Bind(kPort); |
3862 | 3860 |
3863 i::Debugger::StartAgent(kPort); | 3861 i::Debugger::StartAgent(kPort); |
3864 i::Debugger::StopAgent(); | 3862 i::Debugger::StopAgent(); |
3865 | 3863 |
3866 delete server; | 3864 delete server; |
3867 } | 3865 } |
3868 #endif | |
OLD | NEW |