platform_system_core/libcutils/tests
Ben Fennema acd7b7b0c0 libcutils: fs_config: fix "system/<partition>/" aliasing
Pull prefix checking into fs_config_cmp and make prefix_cmp be a
glorified partial ? strncmp() : strcmp()

Results before:
[ RUN      ] fs_config.system_alias

[ ERROR ] system/core/libcutils/tests/fs_config.cpp:143:: vendor/lib/hw didn't match system/vendor/lib

[ ERROR ] system/core/libcutils/tests/fs_config.cpp:143:: system/vendor/bin/wifi didn't match vendor/bin/wifi

[ ERROR ] system/core/libcutils/tests/fs_config.cpp:143:: system/odm/bin/wifi didn't match odm/bin/wifi

[ ERROR ] system/core/libcutils/tests/fs_config.cpp:143:: system/oem/bin/wifi didn't match oem/bin/wifi
system/core/libcutils/tests/fs_config.cpp:247: Failure
Value of: check_fs_config_cmp(fs_config_cmp_tests)
  Actual: true
Expected: false
[  FAILED  ] fs_config.system_alias (6 ms)

Results after:
[ RUN      ] fs_config.system_alias
[       OK ] fs_config.system_alias (0 ms)

Bug: 62204623
Test: gTest libcutils-unit-test --gtest_filter=fs_config.*
Change-Id: I8282827002816e86ea3014fed29eabf43b837815
Signed-off-by: Ben Fennema <fennema@google.com>
2017-06-26 14:13:52 -07:00
..
Android.bp libcutils: fs_config internal table alias test 2017-05-04 11:41:17 -07:00
android_get_control_file_test.cpp libcutils: move cutils/files.h to cutils/android_get_control_file.h 2016-11-16 15:56:56 -08:00
android_get_control_socket_test.cpp libcutils: move cutils/files.h to cutils/android_get_control_file.h 2016-11-16 15:56:56 -08:00
AndroidTest.xml Add test config to libcutils_test 2017-03-31 17:12:18 -07:00
AshmemTest.cpp AshmemTest: expand ProtTest cases 2017-05-05 20:04:12 +00:00
fs_config.cpp libcutils: fs_config: fix "system/<partition>/" aliasing 2017-06-26 14:13:52 -07:00
MemsetTest.cpp Make allocations use unique_ptr. 2015-10-14 14:03:29 -07:00
multiuser_test.cpp Allocate a GID range for external cache files. 2017-04-17 14:50:27 -06:00
PropertiesTest.cpp libcutils: Use strnlen for default property values 2016-12-22 09:21:06 -08:00
sched_policy_test.cpp libcutils: add sched_policy test 2016-08-03 23:31:50 +00:00
sockets_test.cpp libcutils: fix socket type in SocketsTest.TestGetLocalPort 2017-02-22 10:58:38 -08:00
test_str_parms.cpp Move all libcutils tests into the gtests. 2015-04-02 14:25:55 -07:00
trace-dev_test.cpp Fix incorrect handling of snprintf return value. 2016-02-25 12:46:44 -08:00