diff options
author | Dimitry Ivanov <dimitry@google.com> | 2017-02-09 13:31:57 -0800 |
---|---|---|
committer | Dimitry Ivanov <dimitry@google.com> | 2017-02-09 14:07:05 -0800 |
commit | ea8f396c59f824993044d9474c2dc04423003c59 (patch) | |
tree | eb39d5e37d3a442b7c2d4f4c3705922b380cd47e /tests/libs/Android.bp | |
parent | 2bfb8c9180603bac97dca2d8e359f71bb11f7126 (diff) | |
download | android_bionic-ea8f396c59f824993044d9474c2dc04423003c59.tar.gz android_bionic-ea8f396c59f824993044d9474c2dc04423003c59.tar.bz2 android_bionic-ea8f396c59f824993044d9474c2dc04423003c59.zip |
Add test checking init/fini call order
This test is checking that loader complies with the order described in
http://www.sco.com/developers/gabi/latest/ch5.dynamic.html#init_fini
Bug: http://b/35201832
Test: bionic-unit-tests --gtest_filter=dl*:Dl*
Test: bionic-unit-tests-glibc --gtest_filter=dl*
Change-Id: I4cdf878c043112442c191e82aa9f5d5077e4d8c4
Diffstat (limited to 'tests/libs/Android.bp')
-rw-r--r-- | tests/libs/Android.bp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/libs/Android.bp b/tests/libs/Android.bp index 78027275f..31a09161f 100644 --- a/tests/libs/Android.bp +++ b/tests/libs/Android.bp @@ -448,6 +448,29 @@ cc_test_library { } // ----------------------------------------------------------------------------- +// Library used to check init/fini call order +// ----------------------------------------------------------------------------- +cc_test_library { + name: "libtest_init_fini_order_root", + defaults: ["bionic_testlib_defaults"], + srcs: ["dlopen_check_init_fini_root.cpp"], + shared_libs: ["libtest_init_fini_order_child"], +} + +cc_test_library { + name: "libtest_init_fini_order_child", + defaults: ["bionic_testlib_defaults"], + srcs: ["dlopen_check_init_fini_child.cpp"], + shared_libs: ["libtest_init_fini_order_grand_child"], +} + +cc_test_library { + name: "libtest_init_fini_order_grand_child", + defaults: ["bionic_testlib_defaults"], + srcs: ["dlopen_check_init_fini_grand_child.cpp"], +} + +// ----------------------------------------------------------------------------- // Library that depends on the library with constructor that calls dlopen() b/7941716 // ----------------------------------------------------------------------------- cc_test_library { |