projects
/
typhoon.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial checkin for typhoon chess engine.
[typhoon.git]
/
src
/
autoplay
/
child_process_test.cc
1
#include "child_process.h"
2
#include "gtest/gtest.h"
3
4
TEST(ChildProcessTest, BasicUsage) {
5
util::ChildProcess ps("/usr/bin/bc");
6
ps.Start();
7
ps.Flush();
8
ps.Send("1 + 1\n");
9
char buf[128];
10
ps.Receive(buf, 128);
11
EXPECT_STREQ("2\n", buf);
12
ps.Stop();
13
}