File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -27,16 +27,15 @@ struct time_entry {
27
27
};
28
28
29
29
const struct time_entry time_entries [] = {
30
+ /* For the constants, only the `.value` gets used by the test. */
30
31
{
31
32
.name = "K_FOREVER" ,
32
33
.units = UNIT_FOREVER ,
33
- .uvalue = 0 ,
34
34
.value = K_FOREVER ,
35
35
},
36
36
{
37
37
.name = "K_NO_WAIT" ,
38
38
.units = UNIT_NO_WAIT ,
39
- .uvalue = 0 ,
40
39
.value = K_NO_WAIT ,
41
40
},
42
41
#define DUR_TEST (unit , n ) \
@@ -58,6 +57,9 @@ const struct time_entry time_entries[] = {
58
57
DUR_TEST (MSEC , 32767 ),
59
58
DUR_TEST (MSEC , 32768 ),
60
59
DUR_TEST (MSEC , 32769 ),
60
+ /* The Instance tests don't set the `.value` because it isn't constant, and the test code
61
+ * will calculate the value at runtime, using the conversion functions below.
62
+ */
61
63
#define INST_TEST (unit , n ) \
62
64
{ \
63
65
.name = "Instant " #unit " " #n, \
You can’t perform that action at this time.
0 commit comments