From 0f8ea3aa3671cb0433b4350020430a7740d6fdc6 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Sun, 25 Sep 2022 09:34:13 -0700 Subject: [PATCH] doc update dbUnitTest.h --- modules/database/src/ioc/db/dbUnitTest.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/database/src/ioc/db/dbUnitTest.h b/modules/database/src/ioc/db/dbUnitTest.h index f971fe89d..6b6e9abbb 100644 --- a/modules/database/src/ioc/db/dbUnitTest.h +++ b/modules/database/src/ioc/db/dbUnitTest.h @@ -190,6 +190,7 @@ DBCORE_API void testGlobalUnlock(void); * * @code * #include + * #include * * int mytest_registerRecordDeviceDriver(DBBASE *pbase); * void testCase(void) { @@ -204,7 +205,7 @@ DBCORE_API void testGlobalUnlock(void); * } * * MAIN(mytestmain) { - * testPlan(0); + * testPlan(0); // adjust number of tests * testCase(); * testCase(); // may be repeated if desirable. * return testDone(); @@ -212,6 +213,9 @@ DBCORE_API void testGlobalUnlock(void); * @endcode * * @code + * TOP = .. + * include $(TOP)/configure/CONFIG + * * TARGETS += $(COMMON_DIR)/mytest.dbd * DBDDEPENDS_FILES += mytest.dbd$(DEP) * TESTFILES += $(COMMON_DIR)/mytest.dbd @@ -222,6 +226,8 @@ DBCORE_API void testGlobalUnlock(void); * mytest_SRCS += mytestmain.c # see above * mytest_SRCS += mytest_registerRecordDeviceDriver.cpp * TESTFILES += some.db + * + * include $(TOP)/configure/RULES * @endcode * * @section dbtestactions Actions