platform_system_core/libcutils
Tom Cherry f8baa897ec libcutils: update fs_config tests for current behavior
Update fs_config tests for the new behavior in
a8eb00720c.

Before the above CL, fs_config_cmp() would match any partition prefix
to any path, even if there is not a logical relationship between them.
For example, these two lines in the test the demonstrate the changed
behavior:

{ true,  "vendor/lib",             "system/vendor/lib/hw",    true },
{ true,  "system/vendor/lib",      "vendor/lib/hw",           true },

The first line should match and does; it is testing that files located
at system/vendor/lib/hw are matched by an fs_path_config entry
specified as vendor/lib.  This is to allow for applying the policy we
have for the vendor partition to files in /system/vendor in the case
that there is no vendor partition.

The second line should not match.  This is testing that a file
that's located at vendor/lib/hw is matched by an fs_path_config entry
specified as system/vendor/lib.  This is backwards; we do not want to
have policy specified for system/vendor to impact policy for the
vendor partition.

Also, we never have any relationships from /system/oem to /oem or
/system/odm to /odm, so these are logically unrelated and should fail
to match.  We do however have a relationship from /vendor/odm to /odm,
so this test is added.

Test: libcutils unit tests pass on CF
Change-Id: I026f0233e00bbd0aad9bc0fb701aef000d2a037c
2019-11-06 09:40:33 -08:00
..
arch-arm
arch-arm64
arch-mips
arch-x86
arch-x86_64
include libcutils: route to /dev/ashmem<boot_id> instead of ashmemd 2019-09-25 12:50:16 -07:00
include_vndk/cutils Reland "libcutils: remove unused "jstring.h". 2019-08-12 15:09:20 +00:00
Android.bp Reland "libcutils: remove unused "jstring.h". 2019-08-12 15:09:20 +00:00
android_get_control_env.h
android_get_control_file.cpp
android_get_control_file_test.cpp
android_get_control_socket_test.cpp
android_reboot.cpp libcutils: android_reboot command should be unsigned. 2019-04-02 09:19:46 -07:00
ashmem-dev.cpp libcutils: route to /dev/ashmem<boot_id> instead of ashmemd 2019-09-25 12:50:16 -07:00
ashmem-host.cpp libcutils: route to /dev/ashmem<boot_id> instead of ashmemd 2019-09-25 12:50:16 -07:00
ashmem_test.cpp
canned_fs_config.cpp
config_utils.cpp
fs.cpp
fs_config.cpp Moving recovery resources from /system to /vendor 2019-10-04 00:04:08 +00:00
fs_config.h Actually make fs_path_config / fs_path_config_from_file private 2019-06-20 23:34:30 +00:00
fs_config_test.cpp libcutils: update fs_config tests for current behavior 2019-11-06 09:40:33 -08:00
hashmap.cpp
iosched_policy.cpp
klog.cpp
load_file.cpp
memset_test.cpp
MODULE_LICENSE_APACHE2
multiuser.cpp
multiuser_test.cpp
native_handle.cpp
NOTICE
OWNERS
partition_utils.cpp
properties.cpp
properties_test.cpp
qtaguid.cpp
record_stream.cpp
sched_policy_test.cpp sched_policy: add get_cpuset/sched_policy_profile_name 2019-10-14 20:03:06 -07:00
socket_inaddr_any_server_unix.cpp
socket_inaddr_any_server_windows.cpp
socket_local_client_unix.cpp
socket_local_server_unix.cpp
socket_local_unix.h
socket_network_client_unix.cpp
socket_network_client_windows.cpp
sockets.cpp
sockets_test.cpp
sockets_unix.cpp
sockets_windows.cpp
str_parms.cpp
str_parms_test.cpp
strlcpy.c
threads.cpp
trace-container.cpp
trace-dev.cpp Remove useless goto. 2019-10-10 18:15:24 +01:00
trace-dev.inc Revert "liblog: remove mistakenly added symbols from vndk" 2019-10-23 11:39:13 -07:00
trace-dev_test.cpp
trace-host.cpp
uevent.cpp