diff options
author | Mark Salyzyn | 2017-05-24 17:24:55 -0500 |
---|---|---|
committer | Mark Salyzyn | 2017-05-24 17:30:07 -0500 |
commit | 067e8a0725137e9286a0b33474db21354d3699bd (patch) | |
tree | fe67451a60a4c188324639517f5b6637df97091b /liblog/tests | |
parent | f71d718906a8b1a18929a7e86f7a8af952721384 (diff) | |
download | platform-system-core-067e8a0725137e9286a0b33474db21354d3699bd.tar.gz platform-system-core-067e8a0725137e9286a0b33474db21354d3699bd.tar.xz platform-system-core-067e8a0725137e9286a0b33474db21354d3699bd.zip |
liblog: test: CTS: enoent does not qualify
Eliminate liblog@enoent CTS test as it is bypassed on "user" builds
in commit "liblog: test: enoent requires userdebug or eng to run".
This prevents time wasted running a test that bypasses during CTS.
Test: CtsLiblogTestCases_list --gtest_list_tests |
(grep enoent && echo FAILED)
Bug: 62030441
Change-Id: Ia440db3e74dacdc5c311c640aab3a11844cc195a
Diffstat (limited to 'liblog/tests')
-rw-r--r-- | liblog/tests/liblog_test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/liblog/tests/liblog_test.cpp b/liblog/tests/liblog_test.cpp index 71f74abb1..46ec5ef64 100644 --- a/liblog/tests/liblog_test.cpp +++ b/liblog/tests/liblog_test.cpp | |||
@@ -1720,6 +1720,7 @@ TEST(liblog, is_loggable) { | |||
1720 | // Kills logd and toss all collected data, equivalent to logcat -b all -c, | 1720 | // Kills logd and toss all collected data, equivalent to logcat -b all -c, |
1721 | // except we also return errors to the logging callers. | 1721 | // except we also return errors to the logging callers. |
1722 | #ifdef USING_LOGGER_DEFAULT | 1722 | #ifdef USING_LOGGER_DEFAULT |
1723 | #ifdef __ANDROID__ | ||
1723 | #ifdef TEST_PREFIX | 1724 | #ifdef TEST_PREFIX |
1724 | // helper to liblog.enoent to count end-to-end matching logging messages. | 1725 | // helper to liblog.enoent to count end-to-end matching logging messages. |
1725 | static int count_matching_ts(log_time ts) { | 1726 | static int count_matching_ts(log_time ts) { |
@@ -1832,7 +1833,8 @@ TEST(liblog, enoent) { | |||
1832 | GTEST_LOG_(INFO) << "This test does nothing.\n"; | 1833 | GTEST_LOG_(INFO) << "This test does nothing.\n"; |
1833 | #endif | 1834 | #endif |
1834 | } | 1835 | } |
1835 | #endif // USING_LOCAL_LOGD | 1836 | #endif // __ANDROID__ |
1837 | #endif // USING_LOGGER_DEFAULT | ||
1836 | 1838 | ||
1837 | // Below this point we run risks of setuid(AID_SYSTEM) which may affect others. | 1839 | // Below this point we run risks of setuid(AID_SYSTEM) which may affect others. |
1838 | 1840 | ||