Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd80a6cf authored by Christopher Wiley's avatar Christopher Wiley Committed by Gerrit Code Review
Browse files

Merge "aidl: Stop using Bionic's test main"

parents 722bf5c7 1006bfe0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -56,13 +56,14 @@ LOCAL_MODULE := aidl_unittests
LOCAL_CFLAGS := -g -DUNIT_TEST -Wall -Werror
LOCAL_SRC_FILES := \
    options_unittest.cpp \
    test_main.cpp \
    tests/test.cpp \

LOCAL_STATIC_LIBRARIES := \
    libaidl-common \
    libgmock_host \
    libgtest_host \
    libBionicGtestMain

LOCAL_LDLIBS := -lrt
include $(BUILD_HOST_NATIVE_TEST)

+6 −0
Original line number Diff line number Diff line
#include <gtest/gtest.h>

int main(int argc, char **argv) {
  ::testing::InitGoogleTest(&argc, argv);
  return RUN_ALL_TESTS();
}