Make AOS starter print out application version on crashes
This way a journal log parser can unambiguously know what application
crahsed. Note that when an application crashes before it can send a
timing report out (e.g., if it crashes during initialization), this will
not end up helping.
Change-Id: I5217aecc395d2419ed7b622358f213cfd8ecd30f
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/starter/starter_test.cc b/aos/starter/starter_test.cc
index 3070f8e..cbb83f6 100644
--- a/aos/starter/starter_test.cc
+++ b/aos/starter/starter_test.cc
@@ -358,6 +358,8 @@
ASSERT_EQ(pong_app_status->pid(), pong_app_status->process_info()->pid());
ASSERT_TRUE(pong_app_status->process_info()->has_cpu_usage());
ASSERT_LE(0.0, pong_app_status->process_info()->cpu_usage());
+ ASSERT_TRUE(pong_app_status->has_has_active_timing_report());
+ ASSERT_TRUE(pong_app_status->has_active_timing_report());
watcher_loop.Exit();
SUCCEED();
}