1 |
30 |
unneback |
*** ITRONSEM01 -- ITRON SEMAPHORE TEST ***
|
2 |
|
|
Init - cre_sem - NULL pk_sem returns E_PAR
|
3 |
|
|
Init - cre_sem - isemcnt > maxsem returns E_PAR
|
4 |
|
|
Init - cre_sem - maxsem of 0 returns E_PAR
|
5 |
|
|
Init - cre_sem - bad id (less than -4) - E_OACV
|
6 |
|
|
Init - cre_sem - bad id (between 0 and -4) - E_ID
|
7 |
|
|
Init - cre_sem - bad id (0) - E_ID
|
8 |
|
|
Init - cre_sem - bad id (too great) - E_ID
|
9 |
|
|
Init - cre_sem - create semaphore 1 TA_TFIFO - E_OK
|
10 |
|
|
Init - cre_sem - create semaphore 1 again - E_OBJ
|
11 |
|
|
Init - cre_sem - create semaphore 2 TA_TPRI - E_OK
|
12 |
|
|
Init - del_sem - bad id (less than -4) - E_OACV
|
13 |
|
|
Init - del_sem - bad id (between 0 and -4) - E_ID
|
14 |
|
|
Init - del_sem - bad id (0) - E_ID
|
15 |
|
|
Init - del_sem - bad id (too great) - E_ID
|
16 |
|
|
Init - sig_sem - bad id (less than -4) - E_OACV
|
17 |
|
|
Init - sig_sem - bad id (between 0 and -4) - E_ID
|
18 |
|
|
Init - sig_sem - bad id (0) - E_ID
|
19 |
|
|
Init - sig_sem - bad id (too great) - E_ID
|
20 |
|
|
Init - preq_sem - bad id (less than -4) - E_OACV
|
21 |
|
|
Init - preq_sem - bad id (between 0 and -4) - E_ID
|
22 |
|
|
Init - preq_sem - bad id (0) - E_ID
|
23 |
|
|
Init - preq_sem - bad id (too great) - E_ID
|
24 |
|
|
Init - wai_sem - bad id (less than -4) - E_OACV
|
25 |
|
|
Init - wai_sem - bad id (between 0 and -4) - E_ID
|
26 |
|
|
Init - wai_sem - bad id (0) - E_ID
|
27 |
|
|
Init - wai_sem - bad id (too great) - E_ID
|
28 |
|
|
Init - twai_sem - bad id (less than -4) - E_OACV
|
29 |
|
|
Init - twai_sem - bad id (between 0 and -4) - E_ID
|
30 |
|
|
Init - twai_sem - bad id (0) - E_ID
|
31 |
|
|
Init - twai_sem - bad id (too great) - E_ID
|
32 |
|
|
Init - ref_sem - bad id (less than -4) - E_OACV
|
33 |
|
|
Init - ref_sem - bad id (between 0 and -4) - E_ID
|
34 |
|
|
Init - ref_sem - bad id (0) - E_ID
|
35 |
|
|
Init - ref_sem - bad id (too great) - E_ID
|
36 |
|
|
Init - preq_sem - semaphore 1 available (count --> 1) - E_OK
|
37 |
|
|
Init - preq_sem - semaphore 1 available (count --> 0) - E_OK
|
38 |
|
|
Init - preq_sem - semaphore 1 unavailable - E_TMOUT
|
39 |
|
|
Init - sig_sem - semaphore 1 (count --> 1) - E_OK
|
40 |
|
|
Init - twai_sem(TMO_POL) - semaphore 1 available (count --> 0) - E_OK
|
41 |
|
|
Init - twai_sem(TMO_POL) - semaphore 1 available - E_TMOUT
|
42 |
|
|
Init - twai_sem - semaphore 1 unavailable - 1 second E_TMOUT
|
43 |
|
|
Init - starting to block at Fri Jan 01 00:00:00 1988
|
44 |
|
|
Init - timed out at Fri Jan 01 00:00:01 1988
|
45 |
|
|
Init - twai_sem - semaphore 1 unavailable - timeout completed
|
46 |
|
|
Init - sig_sem - semaphore 1 (count --> 1) - E_OK
|
47 |
|
|
Init - sig_sem - semaphore 1 (count --> 2) - E_OK
|
48 |
|
|
Init - sig_sem - semaphore 1 (count --> 3) - E_OK
|
49 |
|
|
Init - sig_sem - semaphore 1 (count > maximum) - E_QOVR
|
50 |
|
|
Init - ref_sem - NULL pk_sem returns E_PAR
|
51 |
|
|
Init - ref_sem - semaphore 1 - E_OK
|
52 |
|
|
Init - semaphore 1 count = 4
|
53 |
|
|
Init - semaphore 1 waiting tasks = 0
|
54 |
|
|
Init - preq_sem - semaphore 1 (count --> 2) - E_OK
|
55 |
|
|
Init - ref_sem - semaphore 1 - E_OK
|
56 |
|
|
Init - semaphore 1 count = 3
|
57 |
|
|
Init - semaphore 1 waiting tasks = 0
|
58 |
|
|
Init - del_sem - semaphore 1 deleted - E_OK
|
59 |
|
|
Init - XXX need other tasks to complete the test XXX
|
60 |
|
|
Init - dly_tsk - 1 second to let other task run
|
61 |
|
|
*** END OF ITRONSEM01 -- ITRON SEMAPHORE TEST ***
|