diff options
| author | Lei YU <mine260309@gmail.com> | 2019-03-01 16:03:53 +0800 |
|---|---|---|
| committer | Lei YU <mine260309@gmail.com> | 2019-03-13 11:01:53 +0800 |
| commit | 716de5b8e3867fb829a2c1e39ade2b8f6aa1fa39 (patch) | |
| tree | 800b067a0ede4da694731fa2ada022d12da9da5f /test | |
| parent | ed1c1dc53ef867a24a57a692334c24506dd470c6 (diff) | |
| download | openpower-pnor-code-mgmt-716de5b8e3867fb829a2c1e39ade2b8f6aa1fa39.tar.gz openpower-pnor-code-mgmt-716de5b8e3867fb829a2c1e39ade2b8f6aa1fa39.zip | |
test: Add sources of static PNOR
Add sources in static dir to test.
It generates a link error about duplcated GardReset::reset().
Then an issue is found that GardReset::~GardReset() is not virtual,
this will casuse the destructor not calling its super class' dtor.
To fix the above link error, add GardReset[Ubi|Static] to make
ubi/static specific implementation in its own class.
Tested: Verify the test build works fine.
Change-Id: I41bd4d522e8b9c4053283c0cf4373807ef4f2d1c
Signed-off-by: Lei YU <mine260309@gmail.com>
Diffstat (limited to 'test')
| -rwxr-xr-x | test/Makefile.am | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index b58ac6647..e0a13f50d 100755 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -38,8 +38,9 @@ utest_SOURCES = \ ../ubi/item_updater_ubi.cpp \ ../ubi/serialize.cpp \ ../ubi/watch.cpp \ + ../static/item_updater_static.cpp \ + ../static/activation_static.cpp \ utest.cpp \ msl_verify.cpp -utest_LDADD = \ - -lstdc++fs +utest_LDADD = -lstdc++fs |

