Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
97eaa95a
Commit
97eaa95a
authored
Feb 17, 2011
by
Alexey Spizhevoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed check_and_treat_gpu_exception function
parent
993773b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
26 deletions
+2
-26
test_main.cpp
modules/gpu/test/test_main.cpp
+2
-3
test_precomp.hpp
modules/gpu/test/test_precomp.hpp
+0
-23
No files found.
modules/gpu/test/test_main.cpp
View file @
97eaa95a
#include "test_precomp.hpp"
CV_TEST_MAIN
(
"gpu"
)
// Run test with --gtest_catch_exceptions flag to avoid runtime errors in
// the case when there is no GPU
CV_TEST_MAIN
(
"gpu"
)
// TODO Add other tests from tests/gpu folder
// TODO When there is no GPU test system doesn't print error message: it fails or keeps
// quiet when --gtest_catch_exceptions is enabled
modules/gpu/test/test_precomp.hpp
View file @
97eaa95a
...
...
@@ -5,27 +5,4 @@
#include "opencv2/gpu/gpu.hpp"
#include "opencv2/highgui/highgui.hpp"
static
inline
bool
check_and_treat_gpu_exception
(
const
cv
::
Exception
&
e
,
cvtest
::
TS
*
ts
)
{
switch
(
e
.
code
)
{
case
CV_GpuNotSupported
:
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"
\n
Gpu not supported by the library"
);
break
;
case
CV_GpuApiCallError
:
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"
\n
GPU Error: %s"
,
e
.
what
());
break
;
case
CV_GpuNppCallError
:
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"
\n
NPP Error: %s"
,
e
.
what
());
break
;
default:
return
false
;
}
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_GENERIC
);
return
true
;
}
#endif
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