commit | 8d82ea05cb0945ba6cb8bf321b9ffbd0b6932745 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Feb 06 20:15:18 2015 -0800 |
committer | Elliott Hughes <enh@google.com> | Wed Feb 25 17:55:34 2015 -0800 |
tree | 2b73c3eac0ffb520609acf1f2b52d609e419f227 | |
parent | 5329d3fd54fa875bb7de78a8c40134cc63921c64 [diff] [blame] |
Implement exec. Change-Id: I20329bc9b378479d745b498d6a00eca0872cd5ab
diff --git a/init/util_test.cpp b/init/util_test.cpp index e9a1581..5b3ab50 100644 --- a/init/util_test.cpp +++ b/init/util_test.cpp
@@ -35,3 +35,9 @@ s[5] = 0; EXPECT_STREQ("Linux", s.c_str()); } + +TEST(util, decode_uid) { + EXPECT_EQ(0U, decode_uid("root")); + EXPECT_EQ(-1U, decode_uid("toot")); + EXPECT_EQ(123U, decode_uid("123")); +}