android_system_core/libutils/tests
Siarhei Vishniakou 4e5b69134b Add thread safety analysis annotations.
Enable thread safety analysis annotations for clang.
See https://clang.llvm.org/docs/ThreadSafetyAnalysis.html
for instructions on using these in the source code.

Bug: 28094863
Test: annotated
frameworks/native/services/inputflinger/InputDispatcher.cpp
and enabled '-Werror' and '-Wthread-safety' clang
compiler flags in Android.bp for inputflinger.
Observed compiler errors when accessing
instance attributes without holding a lock. Also added
a compile test Mutex_test.cpp, which can be build using
m libutils_tests and run using
/data/nativetest64/libutils_tests/libutils_tests

Change-Id: I24ce111241cc339901bc45dda8b446df5299af4a
2017-07-21 13:25:42 -07:00
..
Android.bp Add thread safety analysis annotations. 2017-07-21 13:25:42 -07:00
BitSet_test.cpp system/core Replace cutils/log.h with android/log.h 2016-09-30 12:47:05 -07:00
BlobCache_test.cpp Add test for RefBase etc. 2016-07-13 12:03:03 -07:00
Looper_test.cpp Merge \"Fix google-explicit-constructor warnings in system/core.\" 2016-07-29 17:01:17 +00:00
LruCache_test.cpp system/core Replace cutils/log.h with android/log.h 2016-09-30 12:47:05 -07:00
Mutex_test.cpp Add thread safety analysis annotations. 2017-07-21 13:25:42 -07:00
README.txt Add test for RefBase etc. 2016-07-13 12:03:03 -07:00
RefBase_test.cpp Make RefBase more robust and debuggable 2016-08-13 11:17:51 -07:00
Singleton_test.cpp Add tests for multiton issue 2017-02-28 16:34:35 +00:00
Singleton_test.h Add tests for multiton issue 2017-02-28 16:34:35 +00:00
Singleton_test1.cpp Add tests for multiton issue 2017-02-28 16:34:35 +00:00
Singleton_test2.cpp Add tests for multiton issue 2017-02-28 16:34:35 +00:00
String8_test.cpp libutils/Unicode.cpp: Correct length computation and add checks for utf16->utf8 2016-08-25 20:07:51 +00:00
StrongPointer_test.cpp Fix ODR issue in StrongPointer_test.cpp 2017-02-23 21:25:18 -08:00
SystemClock_test.cpp SystemClock: add test 2016-05-02 13:59:58 -07:00
TestHelpers.h Fix google-explicit-constructor warnings in system/core. 2016-07-26 11:26:01 -07:00
Unicode_test.cpp Unicode: specify destination length in utf8_to_utf16 methods 2016-08-25 19:57:06 +00:00
Vector_test.cpp Make __android_log_assert behave more like libc asserts. 2017-02-06 10:54:00 -08:00

Run device tests:

mma -j<whatever>
(after adb root; adb disable-verity; adb reboot)
adb root
adb remount
adb sync
adb shell /data/nativetest/libutils_tests/libutils_tests