mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-11-01 01:56:10 +00:00
Merge pull request #363 from ccollins476ad/testutil-init
testutil - Remove init boilerplate X-Original-Commit: 7fa825fdcba998883525b98b082052aec910ddc6
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
#include "sysinit/sysinit.h"
|
||||
#include "syscfg/syscfg.h"
|
||||
#include "os/os.h"
|
||||
#include "nimble/hci_common.h"
|
||||
@@ -29,10 +30,7 @@
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
ts_config.ts_print_results = 1;
|
||||
tu_parse_args(argc, argv);
|
||||
|
||||
tu_init();
|
||||
sysinit();
|
||||
|
||||
ble_att_clt_test_all();
|
||||
ble_att_svr_test_all();
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include "sysinit/sysinit.h"
|
||||
#include "stats/stats.h"
|
||||
#include "testutil/testutil.h"
|
||||
#include "nimble/ble.h"
|
||||
@@ -2362,7 +2363,7 @@ ble_hs_test_util_store_delete(int obj_type, const union ble_store_key *key)
|
||||
void
|
||||
ble_hs_test_util_init_no_start(void)
|
||||
{
|
||||
tu_init();
|
||||
sysinit();
|
||||
|
||||
os_eventq_init(&ble_hs_test_util_evq);
|
||||
STAILQ_INIT(&ble_hs_test_util_prev_tx_queue);
|
||||
|
||||
Reference in New Issue
Block a user