Subversion Repositories HelenOS

Rev

Rev 2867 | Rev 2894 | 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 <thread.h>
  4. #include "../tester.h"
  5.  
  6. volatile int done;
  7.  
  8. void t_proc(void *arg)
  9. {
  10.     printf("this is 'test' thread [wait for key]\n");
  11.     getchar();
  12.     done = 1;
  13. }
  14.  
  15. #include <vfs/vfs.h>
  16. #include <errno.h>
  17.  
  18. char * test_debug1(bool quiet)
  19. {
  20.     int rc;
  21.     thread_id_t tid;
  22.  
  23.     done = 0;
  24.  
  25.     getchar();
  26.     if (mount("tmpfs", "/", "nulldev0") != EOK)
  27.         return "mount() failed.\n";
  28.     getchar();
  29.  
  30. //  printf("running debug1 test\n");
  31. //  rc = thread_create(t_proc, NULL, "test", &tid);
  32.  
  33.     //printf("(active) wait for thread 'test'\n");
  34. //  while (!done) {
  35. //      usleep(20000000);
  36. //      printf(".");
  37. //  }
  38.  
  39. //  printf("done\n");
  40.     return NULL;
  41. }
  42.