commit | 19e26545f51a550ba37d7ade1a78195b1b1e7bc4 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon Mar 10 12:32:35 2025 -0700 |
committer | Elliott Hughes <enh@google.com> | Mon Mar 10 12:32:35 2025 -0700 |
tree | 7b530722e866ebdb6e8e340e7d5e2332c1891409 | |
parent | dcf5858c66e5eae63dab213b9ac1ff1b4a4ddf55 [diff] |
Test that uid 0 isn't dropped in proto to text conversion. Bug: http://b/401182697 Change-Id: I0bbb11d1babfcf19a98cacb14f16487006182e0b
diff --git a/debuggerd/libdebuggerd/test/tombstone_proto_to_text_test.cpp b/debuggerd/libdebuggerd/test/tombstone_proto_to_text_test.cpp index aad209a..988ca0c 100644 --- a/debuggerd/libdebuggerd/test/tombstone_proto_to_text_test.cpp +++ b/debuggerd/libdebuggerd/test/tombstone_proto_to_text_test.cpp
@@ -175,3 +175,8 @@ ProtoToString(); EXPECT_MATCH(text_, "\\(BuildId: 0123456789abcdef\\)\\nSYMBOLIZE 0123456789abcdef 12345\\n"); } + +TEST_F(TombstoneProtoToTextTest, uid) { + ProtoToString(); + EXPECT_MATCH(text_, "\\nLOG uid: 0\\n"); +}