Subversion Repositories HelenOS

Rev

Rev 2894 | Rev 3121 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2894 Rev 2898
Line 41... Line 41...
41
}
41
}
42
 
42
 
43
#include <vfs/vfs.h>
43
#include <vfs/vfs.h>
44
#include <errno.h>
44
#include <errno.h>
45
 
45
 
-
 
46
static ipc_call_t call;
-
 
47
 
46
char * test_debug1(bool quiet)
48
char * test_debug1(bool quiet)
47
{
49
{
48
    int rc;
50
    int rc;
49
    thread_id_t tid;
51
    thread_id_t tid;
-
 
52
//  ipc_call_t call;
50
 
53
 
51
    done = 0;
54
    done = 0;
52
 
55
 
-
 
56
/*  while(1) {
-
 
57
        printf(".");
-
 
58
        ipc_wait_for_call(&call);
-
 
59
    }*/
53
    getchar();
60
//  getchar();
54
    if (mount("tmpfs", "/", "nulldev0") != EOK)
61
//  if (mount("tmpfs", "/", "nulldev0") != EOK)
55
        return "mount() failed.\n";
62
//      return "mount() failed.\n";
56
    getchar();
63
//  getchar();
57
 
64
 
58
//  printf("running debug1 test\n");
65
//  printf("running debug1 test\n");
59
//  rc = thread_create(t_proc, NULL, "test", &tid);
66
//  rc = thread_create(t_proc, NULL, "test", &tid);
60
 
67
 
61
    //printf("(active) wait for thread 'test'\n");
68
    //printf("(active) wait for thread 'test'\n");
62
//  while (!done) {
69
    while (!done) {
63
//      usleep(20000000);
70
        usleep(1*1000*1000);
64
//      printf(".");
71
        printf(".");
65
//  }
72
    }
66
 
73
 
67
//  printf("done\n");
74
//  printf("done\n");
68
    return NULL;
75
    return NULL;
69
}
76
}