Add initialize db function for smoke test 53/210253/4
authorIlho Kim <ilho159.kim@samsung.com>
Wed, 17 Jul 2019 07:53:37 +0000 (16:53 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Thu, 18 Jul 2019 07:02:48 +0000 (16:02 +0900)
commit8d743975f0a0ab068638c37c4e665ca615e4a5da
tree44231c6ffef633b237d8866a97713ca175645d72
parent62f3166c5444f4f2c8b5a4674e7a2644ed1200cf
Add initialize db function for smoke test

After below patch
   https://review.tizen.org/gerrit/#/c/platform/core/appfw/pkgmgr-info/+/207513/
The smoke test requires the process of creatring db for testing.
This is because opening the db with the "SQLITE_OPEN_READWRITE" flag doesn't create a db.

Related changes
   [tpk-backend] https://review.tizen.org/gerrit/#/c/platform/core/appfw/tpk-backend/+/210255/
   [wgt-backend] https://review.tizen.org/gerrit/#/c/platform/core/appfw/wgt-backend/+/210254/

Change-Id: I16161eba7b8b649a7e912891def3b81c1dc6dff6
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/unit_tests/common/smoke_utils.cc
src/unit_tests/common/smoke_utils.h