Rev 2867 | Rev 2894 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2801 | svoboda | 1 | #include <stdio.h> |
2 | #include <unistd.h> |
||
2850 | svoboda | 3 | #include <thread.h> |
2801 | svoboda | 4 | #include "../tester.h" |
5 | |||
2850 | svoboda | 6 | volatile int done; |
2801 | svoboda | 7 | |
2850 | svoboda | 8 | void t_proc(void *arg) |
9 | { |
||
10 | printf("this is 'test' thread [wait for key]\n"); |
||
11 | getchar(); |
||
12 | done = 1; |
||
13 | } |
||
2807 | svoboda | 14 | |
2877 | svoboda | 15 | #include <vfs/vfs.h> |
16 | #include <errno.h> |
||
17 | |||
2801 | svoboda | 18 | char * test_debug1(bool quiet) |
19 | { |
||
20 | int rc; |
||
2850 | svoboda | 21 | thread_id_t tid; |
2801 | svoboda | 22 | |
2850 | svoboda | 23 | done = 0; |
24 | |||
2877 | svoboda | 25 | getchar(); |
26 | if (mount("tmpfs", "/", "nulldev0") != EOK) |
||
27 | return "mount() failed.\n"; |
||
28 | getchar(); |
||
2801 | svoboda | 29 | |
2877 | svoboda | 30 | // printf("running debug1 test\n"); |
31 | // rc = thread_create(t_proc, NULL, "test", &tid); |
||
32 | |||
2854 | svoboda | 33 | //printf("(active) wait for thread 'test'\n"); |
2877 | svoboda | 34 | // while (!done) { |
35 | // usleep(20000000); |
||
36 | // printf("."); |
||
37 | // } |
||
2801 | svoboda | 38 | |
2877 | svoboda | 39 | // printf("done\n"); |
2801 | svoboda | 40 | return NULL; |
41 | } |