test/security_manager_sc: use newer clang __gcov_dump instead of __gcov_flush

This commit is contained in:
Matthias Ringwald 2022-01-06 16:48:24 +01:00
parent 1e83575a3b
commit a63d252824
2 changed files with 4 additions and 7 deletions

View File

@ -54,10 +54,6 @@
#include "btp.h"
#include "btp_socket.h"
#ifdef COVERAGE
#include <dlfcn.h>
#endif
#define AUTOPTS_SOCKET_NAME "/tmp/bt-stack-tester"
#define BT_LE_AD_LIMITED (1U << 0)

View File

@ -64,8 +64,8 @@
#include "btstack_stdin.h"
#ifdef COVERAGE
// guesswork:
void __gcov_flush(void);
void __gcov_dump(void);
void __gcov_reset(void);
#endif
#define HEARTBEAT_PERIOD_MS 1000
@ -458,7 +458,8 @@ static void stdin_process(char c){
case 'x':
#ifdef COVERAGE
log_info("Flush gcov");
__gcov_flush();
__gcov_dump();
__gcov_reset();
#endif
printf("EXIT\n");
exit(0);