Test time_in_state.c in presubmit

Add a TEST_MAPPING file with bpf-time-in-state-tests and
libtimeinstate_test.
To allow this, also fix a return value check that got out of sync
between time_in_state.c and bpf-time-in-state-tests.

Test: atest --test-mapping system/bpfprogs
Signed-off-by: Connor O'Brien <connoro@google.com>
Change-Id: If78b20b704206fcb7ac1273772e5cdc9c592da42
3 files changed
tree: 35411f6f63db9ffd77877373d63bcfb794e3a612
  1. test/
  2. Android.bp
  3. fuse_media.c
  4. LICENSE
  5. METADATA
  6. OWNERS
  7. PREUPLOAD.cfg
  8. TEST_MAPPING
  9. time_in_state.c
  10. time_in_state_test.cpp