Subversion Repositories HelenOS

Rev

Rev 2805 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #include <stdio.h>
  2. #include <unistd.h>
  3. #include <ipc/ipc.h>
  4. #include "../tester.h"
  5.  
  6.  
  7. char * test_debug1(bool quiet)
  8. {
  9.     int taskid;
  10.     int rc;
  11.     int phoneid;
  12.     int i;
  13.  
  14.     printf("running debug1 test\n");
  15.     taskid = 12;
  16.     printf("ipc_connect_task(%d)...\n", taskid);
  17.     rc = ipc_connect_task(taskid);
  18.     printf("-> %d\n", rc);
  19.     phoneid = rc;
  20.  
  21.     printf("send IPC_M_DEBUG_BEGIN message\n");
  22.     rc = ipc_call_sync_0_0(phoneid, IPC_M_DEBUG_BEGIN);
  23.     printf("-> %d\n", rc);
  24.  
  25.     while (1) {
  26.         printf("send IPC_M_DEBUG_GO message\n");
  27.         rc = ipc_call_sync_0_0(phoneid, IPC_M_DEBUG_GO);
  28.         printf("-> %d\n", rc);
  29.     }
  30.  
  31.     printf("done\n");
  32.     return NULL;
  33. }
  34.