netd_client_test.cpp - switch to GTEST_SKIP in SKIP macro

  $ atest netd_integration_test:NetdClientIntegrationTest

  Running Tests...

  x86 netd_integration_test
  -------------------------
  netd_integration_test32 (1 Test)
  [1/1] NetdClientIntegrationTest#setAllowNetworkingForProcess: IGNORED (0ms)

  Summary
  -------
  x86 netd_integration_test: Passed: 0, Failed: 0, Ignored: 1, Assumption Failed: 0,

  All tests passed!

  $ unzip /tmp/atest_result/20211111_010702_t4wtejek/log/invocation_9786124200761962118/host_log_4507901855813025648.zip

  $ cat host_log.txt | egrep -C5 Skip
  11-11 01:24:22 V/GTestResultParser: [==========] Running 1 test from 1 test suite.
  11-11 01:24:22 V/GTestResultParser: [----------] Global test environment set-up.
  11-11 01:24:22 V/GTestResultParser: [----------] 1 test from NetdClientIntegrationTest
  11-11 01:24:22 D/ModuleListener: ModuleListener.testStarted(NetdClientIntegrationTest#setAllowNetworkingForProcess)
  11-11 01:24:22 V/GTestResultParser: [ RUN      ] NetdClientIntegrationTest.setAllowNetworkingForProcess
  11-11 01:24:22 V/GTestResultParser: system/netd/tests/netd_client_test.cpp:104: Skipped
  11-11 01:24:22 V/GTestResultParser: Skip. Requires Network Connectivity.
  11-11 01:24:22 I/ModuleListener: [1/1] netd_integration_test32 NetdClientIntegrationTest#setAllowNetworkingForProcess IGNORED
  11-11 01:24:22 V/GTestResultParser: [  SKIPPED ] NetdClientIntegrationTest.setAllowNetworkingForProcess (0 ms)
  11-11 01:24:22 V/GTestResultParser: [----------] 1 test from NetdClientIntegrationTest (0 ms total)
  11-11 01:24:22 V/GTestResultParser:
  11-11 01:24:22 V/GTestResultParser: [----------] Global test environment tear-down

Tested: TreeHugger, atest netd_integration_test
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ia5557e6c925710197b43cbd44ff1dac7dc48d164
1 file changed