Skip to content

Commit

Permalink
test_mxqd_control: Init server structure
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Nov 3, 2015
1 parent 2ac2843 commit a28a7c7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test_mxqd_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,30 @@

#include <assert.h>

#include "mxqd.h"

#define MEMORY_TOTAL 20480
#define MEMORY_MAX_PER_SLOT 2048
#define SLOTS 10

void __init_server(struct mxq_server *server)
{
server->memory_total = MEMORY_TOTAL;
server->memory_max_per_slot = MEMORY_MAX_PER_SLOT;
server->slots = SLOTS;
server->memory_avg_per_slot = MEMORY_TOTAL / SLOTS;
}


static void test_mxqd_control(void)
{
struct mxq_server _server = { 0 };
struct mxq_server *server;

server = &_server;

__init_server(server);

assert(1);
}

Expand Down

0 comments on commit a28a7c7

Please sign in to comment.