projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge tag 'v3.14.25' into backport/v3.14.24-ltsi-rc1+v3.14.25/snapshot-merge.wip
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
drivers
/
staging
/
ktap
/
test
/
timer.kp
1
#!/usr/bin/env ktap
2
3
function failed() {
4
printf("failed\n");
5
exit(-1);
6
}
7
8
#---------------------------------------#
9
10
n1 = 0
11
n2 = 0
12
13
tick-1s {
14
n1 = n1 + 1
15
}
16
17
tick-1s {
18
n2 = n2 + 1
19
}
20
21
tick-4s {
22
if (n1 == 0 || n2 == 0) {
23
failed()
24
}
25
exit()
26
}
27
28