Ejemplo n.º 1
0
def test_CppCompiler_success():

    fs = FakeSystemOperations()
    c = CppCompiler( fs )
    c.run( "myprog", "testexe" )

    assert_equal( fs.calls, [
        "Popen(g++,-x,c++,-o,testexe,-)",
        "communicate(myprog)",
        ] )
Ejemplo n.º 2
0
def test_CppCompiler_failure():

    fs = FakeSystemOperations( 1 )
    c = CppCompiler( fs )
    c.run( "myprog", "testexe" )