Ninja
Functions | Variables
subprocess_test.cc File Reference
#include "subprocess.h"
#include "test.h"
#include <string>
#include <stdio.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.h>
Include dependency graph for subprocess_test.cc:

Go to the source code of this file.

Functions

 TEST_F (SubprocessTest, BadCommandStderr)
 
 TEST_F (SubprocessTest, NoSuchCommand)
 
 TEST_F (SubprocessTest, InterruptChild)
 
 TEST_F (SubprocessTest, InterruptParent)
 
 TEST_F (SubprocessTest, InterruptChildWithSigTerm)
 
 TEST_F (SubprocessTest, InterruptParentWithSigTerm)
 
 TEST_F (SubprocessTest, Console)
 
 TEST_F (SubprocessTest, NoConsole)
 
 TEST_F (SubprocessTest, SetWithSingle)
 
 TEST_F (SubprocessTest, SetWithMulti)
 
 TEST_F (SubprocessTest, SetWithLots)
 
 TEST_F (SubprocessTest, ReadStdin)
 

Variables

static const char kIsConnectedToTerminal [] = "tty < /dev/tty > /dev/null"
 

Function Documentation

TEST_F ( SubprocessTest  ,
BadCommandStderr   
)
TEST_F ( SubprocessTest  ,
NoSuchCommand   
)
TEST_F ( SubprocessTest  ,
InterruptChild   
)
TEST_F ( SubprocessTest  ,
InterruptParent   
)

Definition at line 88 of file subprocess_test.cc.

References ASSERT_FALSE, ASSERT_NE, and Subprocess::Done().

TEST_F ( SubprocessTest  ,
InterruptChildWithSigTerm   
)
TEST_F ( SubprocessTest  ,
InterruptParentWithSigTerm   
)

Definition at line 112 of file subprocess_test.cc.

References ASSERT_FALSE, ASSERT_NE, and Subprocess::Done().

TEST_F ( SubprocessTest  ,
Console   
)
TEST_F ( SubprocessTest  ,
NoConsole   
)
TEST_F ( SubprocessTest  ,
SetWithSingle   
)
TEST_F ( SubprocessTest  ,
SetWithMulti   
)

Definition at line 178 of file subprocess_test.cc.

References ASSERT_EQ, ASSERT_FALSE, ASSERT_GT, ASSERT_NE, and ExitSuccess.

TEST_F ( SubprocessTest  ,
SetWithLots   
)

Definition at line 221 of file subprocess_test.cc.

References ASSERT_EQ, ASSERT_NE, and ExitSuccess.

TEST_F ( SubprocessTest  ,
ReadStdin   
)

Definition at line 255 of file subprocess_test.cc.

References ASSERT_EQ, Subprocess::Done(), ExitSuccess, and Subprocess::Finish().

Variable Documentation

const char kIsConnectedToTerminal[] = "tty < /dev/tty > /dev/null"
static

Definition at line 130 of file subprocess_test.cc.

Referenced by TEST_F().