summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLei YU <mine260309@gmail.com>2018-09-10 10:34:56 +0800
committerLei YU <mine260309@gmail.com>2018-09-12 10:44:55 +0800
commitbd024395f6e34f4bc5eff4941991abc572e9707e (patch)
tree57d13ef1f218fd0f2dbc79d0415971ad06aafc43 /test
parent33752c75e8bdadf13d983e94667de72f64ba3537 (diff)
downloadphosphor-time-manager-bd024395f6e34f4bc5eff4941991abc572e9707e.tar.gz
phosphor-time-manager-bd024395f6e34f4bc5eff4941991abc572e9707e.zip
Use correct gtest/gmock flags
The test Makefile.am was using -lgmock -lgmock_main directly, which cause link issues on compiling test. Fix this by using the flags specified by gtest package. Tested: Verify the CI passes build. Change-Id: Id51134d7e2696e18f7439f15f8d899edba51856e Signed-off-by: Lei YU <mine260309@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index 3071c72..0c14421 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -15,14 +15,16 @@ test_SOURCES = \
test_LDADD = $(top_builddir)/libtimemanager.la
test_CPPFLAGS = $(GTEST_CPPFLAGS) \
+ $(GMOCK_CFLAGS) \
+ $(GTEST_MAIN_CFLAGS) \
$(AM_CPPFLAGS)
test_CXXFLAGS = $(PTHREAD_CFLAGS) \
$(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
$(SDBUSPLUS_CFLAGS)
-test_LDFLAGS = -lgmock_main \
- -lgmock \
+test_LDFLAGS = $(GMOCK_LIBS) \
+ $(GTEST_MAIN_LIBS) \
$(PTHREAD_LIBS) \
$(OESDK_TESTCASE_FLAGS)
OpenPOWER on IntegriCloud