make test-rlog.cc working