Added unit test for FTermDetection with a terminal simulation
This commit is contained in:
parent
55d3e2a638
commit
0433a47ec1
1
build.sh
1
build.sh
|
@ -122,6 +122,7 @@ if [ "$1" = "--unit-test" ] \
|
|||
|| [ "$1" = "coverage" ]
|
||||
then
|
||||
cd src/test && make check-TESTS
|
||||
cat *.log 2>/dev/null
|
||||
fi
|
||||
|
||||
# make install
|
||||
|
|
|
@ -1958,7 +1958,7 @@ pid_t FTermDetectionTest::forkProcess()
|
|||
tcsetattr (fd_slave, TCSANOW, &term_settings);
|
||||
closeStandardStreams();
|
||||
|
||||
fd_stdin = dup(fd_slave); // PTY becomes stdin (0)
|
||||
fd_stdin = dup(fd_slave); // PTY becomes stdin (0)
|
||||
fd_stdout = dup(fd_slave); // PTY becomes stdout (1)
|
||||
fd_stderr = dup(fd_slave); // PTY becomes stderr (2)
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ int main (int, char**)
|
|||
CPPUNIT_NS::TestRunner testrunner;
|
||||
testrunner.addTest (CPPUNIT_NS::TestFactoryRegistry::getRegistry().makeTest());
|
||||
testrunner.run (testresult);
|
||||
|
||||
// Outputting results in compiler format
|
||||
CPPUNIT_NS::CompilerOutputter compileroutputter ( &collectedresults
|
||||
, std::cerr );
|
||||
|
|
Loading…
Reference in New Issue