Loading liblog/tests/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,7 @@ cc_defaults { ], static_libs: ["liblog"], isolated: true, require_root: true, } // Build tests for the device (with .so). Run with: Loading liblog/tests/logd_writer_test.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,10 @@ using android::base::unique_fd; // socket. This tests for that behavior. TEST(liblog, multi_connect_dgram_socket) { #ifdef __ANDROID__ if (getuid() != 0) { GTEST_SKIP() << "Skipping test, must be run as root."; return; } auto temp_dir = TemporaryDir(); auto socket_path = StringPrintf("%s/test_socket", temp_dir.path); Loading Loading
liblog/tests/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,7 @@ cc_defaults { ], static_libs: ["liblog"], isolated: true, require_root: true, } // Build tests for the device (with .so). Run with: Loading
liblog/tests/logd_writer_test.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,10 @@ using android::base::unique_fd; // socket. This tests for that behavior. TEST(liblog, multi_connect_dgram_socket) { #ifdef __ANDROID__ if (getuid() != 0) { GTEST_SKIP() << "Skipping test, must be run as root."; return; } auto temp_dir = TemporaryDir(); auto socket_path = StringPrintf("%s/test_socket", temp_dir.path); Loading