MCPcopy Create free account
hub / github.com/BVLC/caffe / DeathTestImpl

Method DeathTestImpl

src/gtest/gtest-all.cpp:6520–6527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6518class DeathTestImpl : public DeathTest {
6519 protected:
6520 DeathTestImpl(const char* a_statement, const RE* a_regex)
6521 : statement_(a_statement),
6522 regex_(a_regex),
6523 spawned_(false),
6524 status_(-1),
6525 outcome_(IN_PROGRESS),
6526 read_fd_(-1),
6527 write_fd_(-1) {}
6528
6529 // read_fd_ is expected to be closed and cleared by a derived class.
6530 ~DeathTestImpl() { GTEST_DEATH_TEST_CHECK_(read_fd_ == -1); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected