Changeset 16243

Show
Ignore:
Timestamp:
07/24/08 21:25:03 (5 years ago)
Author:
saturday06
Message:

commitwasure

Location:
lang/cplusplus/i3
Files:
4 added
5 modified

Legend:

Unmodified
Added
Removed
  • lang/cplusplus/i3/src/os-windows/CygwinPty.cpp

    r16113 r16243  
    66    } 
    77 
    8     bool CygwinPty::sigint() { 
     8    bool CygwinPty::sendSigInt() { 
    99        BOOL result = GenerateConsoleCtrlEvent(CTRL_C_EVENT, pi.dwProcessId); 
    1010        return (result != 0); 
     11        //return write("\003", 1); 
    1112    } 
    1213 
  • lang/cplusplus/i3/src/os-windows/CygwinPty.h

    r16113 r16243  
    1717            return true;         
    1818        } 
    19         bool sigint(); 
     19        bool sendSigInt(); 
    2020    private: 
    2121        HANDLE hStdInput; 
  • lang/cplusplus/i3/src/os-windows/Os.cpp

    r16149 r16243  
    77        init_windows_gettext(); 
    88    } 
     9    extern HINSTANCE hInstance; 
    910} 
    1011 
  • lang/cplusplus/i3/src/os-windows/OsTest1.cpp

    r16149 r16243  
    44#include "Common.h" 
    55#include "CygwinPty.h" 
     6 
     7using namespace i3; 
    68 
    79BOOST_AUTO_TEST_CASE(aaaab) { 
     
    1820    BOOST_REQUIRE(pty.write("echo baz\n")); 
    1921    BOOST_REQUIRE(pty.write("/bin\t\t")); 
    20     BOOST_REQUIRE(pty.sigint()); 
    21     BOOST_REQUIRE(pty.write("echo hoge\n")); 
    22     BOOST_REQUIRE(pty.sigint()); 
     22    BOOST_REQUIRE(pty.sendSigInt()); 
     23    BOOST_REQUIRE(pty.sendSigInt()); 
     24    BOOST_REQUIRE(pty.write("echo foo\n")); 
     25    BOOST_REQUIRE(pty.sendSigInt()); 
     26    BOOST_REQUIRE(pty.sendSigInt()); 
     27    BOOST_REQUIRE(pty.write("while true\ndo\necho\ndone\n")); 
     28    Sleep(3000); 
     29    BOOST_REQUIRE(pty.sendSigInt()); 
    2330    BOOST_REQUIRE(pty.write("echo hage\n")); 
    2431} 
  • lang/cplusplus/i3/windows/i3_test.vcproj

    r16113 r16243  
    289289                        > 
    290290                        <File 
     291                                RelativePath="..\src\BoostTestMain.cpp" 
     292                                > 
     293                        </File> 
     294                        <File 
    291295                                RelativePath="..\src\CompletionWindow.cpp" 
    292296                                > 
     
    309313                        </File> 
    310314                        <File 
     315                                RelativePath="..\src\gui-windows\GuiTest1.cpp" 
     316                                > 
     317                        </File> 
     318                        <File 
     319                                RelativePath="..\src\gui-windows\GuiTest2.cpp" 
     320                                > 
     321                        </File> 
     322                        <File 
    311323                                RelativePath="..\src\InputWindow.cpp" 
    312324                                > 
     
    326338                        <File 
    327339                                RelativePath="..\src\os-windows\Os.cpp" 
     340                                > 
     341                        </File> 
     342                        <File 
     343                                RelativePath="..\src\os-windows\OsTest1.cpp" 
     344                                > 
     345                        </File> 
     346                        <File 
     347                                RelativePath="..\src\os-windows\OsTest2.cpp" 
    328348                                > 
    329349                        </File> 
     
    357377                        </File> 
    358378                        <File 
    359                                 RelativePath="..\src\TestMain.cpp" 
     379                                RelativePath="..\src\os-windows\WindowsCommon.cpp" 
    360380                                > 
    361381                        </File> 
     
    375395                        </File> 
    376396                        <File 
     397                                RelativePath="..\src\gui-windows\CompletionWindowCore.h" 
     398                                > 
     399                        </File> 
     400                        <File 
    377401                                RelativePath="..\src\windows\CompletionWindowCore.h" 
    378402                                > 
    379403                        </File> 
    380404                        <File 
    381                                 RelativePath="..\src\gui-windows\CompletionWindowCore.h" 
    382                                 > 
    383                         </File> 
    384                         <File 
    385405                                RelativePath="..\src\os-windows\CygwinPty.h" 
    386406                                > 
     
    407427                        </File> 
    408428                        <File 
     429                                RelativePath="..\src\gui-windows\InputWindowCore.h" 
     430                                > 
     431                        </File> 
     432                        <File 
    409433                                RelativePath="..\src\windows\InputWindowCore.h" 
    410434                                > 
    411435                        </File> 
    412436                        <File 
    413                                 RelativePath="..\src\gui-windows\InputWindowCore.h" 
    414                                 > 
    415                         </File> 
    416                         <File 
    417437                                RelativePath="..\src\LibintlUtf16le.h" 
    418438                                > 
     
    436456                        <File 
    437457                                RelativePath="..\src\ShellManager.h" 
     458                                > 
     459                        </File> 
     460                        <File 
     461                                RelativePath="..\src\os-windows\WindowsCommon.h" 
    438462                                > 
    439463                        </File>