shell test
This commit is contained in:
parent
9d51e282da
commit
03cfdd12ad
2 changed files with 9 additions and 5 deletions
|
@ -31,7 +31,7 @@ void shell_on_read(ServerEventArgs* e)
|
|||
|
||||
void shell_init(int srv_or_cli)
|
||||
{
|
||||
if (srv_or_cli)
|
||||
if (!srv_or_cli)
|
||||
{
|
||||
server_init(&srv,5555,49);
|
||||
srv._OnConnect = shell_on_connect;
|
||||
|
|
|
@ -39,6 +39,8 @@
|
|||
#include "client.h"
|
||||
#include "server.h"
|
||||
|
||||
#include "shell.h"
|
||||
|
||||
static sem_t consuming, producing;
|
||||
static mailbox_int32_t mbox;
|
||||
static int val = 0;
|
||||
|
@ -411,10 +413,12 @@ int test_init(void)
|
|||
{
|
||||
kprintf("start testing");
|
||||
|
||||
if (!get_core_no())
|
||||
create_kernel_task(NULL,server_task,NULL);
|
||||
else
|
||||
create_kernel_task(NULL,client_task,NULL);
|
||||
// if (!get_core_no())
|
||||
// create_kernel_task(NULL,server_task,NULL);
|
||||
// else
|
||||
// create_kernel_task(NULL,client_task,NULL);
|
||||
|
||||
shell_init(get_core_no());
|
||||
|
||||
#if 0
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue