martine/ninja — Issue #167: Tests require access to private member data
Author: sorbits
Created: 2011-12-26 10:56:40+00:00
State: open

It seems most of the tests fail since they reference private member data, e.g.:

% ninja ninja_test
[2/3] CXX build/state_test.o
FAILED: g++ -MMD -MF build/state_test.o.d -g -Wall -Wextra -Wno-deprecated -Wno-unused-parameter -fno-exceptions -fvisibility=hidden -pipe -O2 -DNDEBUG -I/opt/local/include -c src/state_test.cc -o build/state_test.o
src/graph.h: In member function ‘virtual void::State_Basic_Test::TestBody()’:
src/graph.h:121: error: ‘EvalString Rule::command_’ is private
src/state_test.cc:26: error: within this context
ninja: build stopped: subcommand failed.

This is using latest version (d89ddd6be801869aff1308f7c57398c072b776d6).