index
:
libcamera/pinchartl/libcamera.git
master
mtk/camsv
mtk/multi-cam
rpi/streams/next
simple/imx8
Laurent Pinchart's clone of libcamera
git repository hosting on libcamera.org
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
src
/
qcam
/
assets
/
feathericons
/
help-circle.svg
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
<
class
DoubleOpen
:
public
V4L2VideoDeviceTest
{
public
:
DoubleOpen
()
:
V4L2VideoDeviceTest
(
"vimc"
,
"Raw Capture 0"
) {}
protected
:
int
run
()
{
int
ret
;
/*
* Expect failure: The device has already been opened by the
* V4L2VideoDeviceTest base class
*/
ret
=
capture_
->
open
();
if
(!
ret
) {
std
::
cout
<<
"Double open erroneously succeeded"
<<
std
::
endl
;
capture_
->
close
();
return
TestFail
;
}
return
TestPass
;
}
};
}
/* namespace */
TEST_REGISTER
(
DoubleOpen
)