diff options
author | Jorge Lucangeli Obes <jorgelo@google.com> | 2016-12-20 16:54:04 -0500 |
---|---|---|
committer | Jorge Lucangeli Obes <jorgelo@google.com> | 2017-02-09 18:23:09 -0500 |
commit | 28e980b59c8e309d248b361829ed34408632720f (patch) | |
tree | fc146c16bf4fc7287b1e86a310999d1d3b6d1396 /libunwindstack/tests/MemoryFileTest.cpp | |
parent | 23f4e6b0a5ce3eee548a4cd9e857f522ddaf492b (diff) |
Add a sample service for testing init.
I find myself using something like this every time I add functionality
to init. I cannot possibly be the only one doing this. On the other
hand, if this hasn't been added for so long, maybe there's a reason
for that.
The advantage of using a test service versus modifying an existing
service is that the test service doesn't *require* any permissions or
privileges, so you can add and/or remove whatever you need to test
without breaking the service.
I found it useful to have the service check its own /proc/<pid>/status
from command-line arguments, so that's what the service does.
This CL also adds a .clang-format file for init.
Bug: None
Test: Service runs and exits successfully.
Change-Id: I3e7841a7283158e10c0bf55e0103c03902afb1f0
Diffstat (limited to 'libunwindstack/tests/MemoryFileTest.cpp')
0 files changed, 0 insertions, 0 deletions