Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Testing
Commits
c744d2d0
Commit
c744d2d0
authored
May 13, 2014
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smartbits-tester: force stop all tests
parent
c7316230
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
smartbits.c
sw/smartbits-tester/smartbits.c
+7
-1
wrs_smb.c
sw/smartbits-tester/wrs_smb.c
+6
-1
No files found.
sw/smartbits-tester/smartbits.c
View file @
c744d2d0
...
...
@@ -6,6 +6,7 @@
#include "smartbits.h"
#include "tests_body.h"
extern
int
force_stop
;
/**********************************************************************/
...
...
@@ -261,13 +262,18 @@ int detect_stop(void)
{
fd_set
fds
;
struct
timeval
tv
;
int
ret
;
FD_ZERO
(
&
fds
);
FD_SET
(
0
,
&
fds
);
tv
.
tv_sec
=
0
;
tv
.
tv_usec
=
500000
;
return
select
(
1
,
&
fds
,
NULL
,
NULL
,
&
tv
);
ret
=
select
(
1
,
&
fds
,
NULL
,
NULL
,
&
tv
);
if
(
ret
>
0
&&
getchar
()
==
'q'
)
force_stop
=
1
;
return
ret
;
}
...
...
sw/smartbits-tester/wrs_smb.c
View file @
c744d2d0
...
...
@@ -11,6 +11,8 @@
#include "tests_body.h"
#include "switch_config.h"
int
force_stop
;
int
main
()
{
FILE
*
logfile
;
...
...
@@ -55,7 +57,9 @@ int main()
return
-
1
;
}
for
(
test_no
=
TEST_3_3_1
;
test_no
<=
TEST_3_3_2
;
++
test_no
)
{
force_stop
=
0
;
for
(
test_no
=
TEST_3_1_4
;
test_no
<=
TEST_3_3_2
;
++
test_no
)
{
//for(test_no=TEST_3_1_1; test_no<TEST_3_3_2+1; ++test_no) {
//for(test_no=TEST_3_1_4; test_no<TEST_3_1_4+1; ++test_no) {
//test_no = TEST_2_2_2;
...
...
@@ -71,6 +75,7 @@ int main()
++
t_fail
;
break
;
}
if
(
force_stop
)
break
;
NSDelay
(
5
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment