summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/media_device/media_device_print_test.cpp6
-rw-r--r--test/pipeline/ipu3/ipu3_pipeline_test.cpp5
-rw-r--r--test/v4l2_subdevice/v4l2_subdevice_test.cpp10
3 files changed, 1 insertions, 20 deletions
diff --git a/test/media_device/media_device_print_test.cpp b/test/media_device/media_device_print_test.cpp
index 3eef9739..ceffd538 100644
--- a/test/media_device/media_device_print_test.cpp
+++ b/test/media_device/media_device_print_test.cpp
@@ -124,10 +124,6 @@ int MediaDevicePrintTest::testMediaDevice(const string deviceNode)
dev.close();
- ret = dev.open();
- if (ret)
- return ret;
-
ret = dev.populate();
if (ret)
return ret;
@@ -135,8 +131,6 @@ int MediaDevicePrintTest::testMediaDevice(const string deviceNode)
/* Print out the media graph. */
printMediaGraph(dev, cerr);
- dev.close();
-
return 0;
}
diff --git a/test/pipeline/ipu3/ipu3_pipeline_test.cpp b/test/pipeline/ipu3/ipu3_pipeline_test.cpp
index 953f0233..1d4cc4d4 100644
--- a/test/pipeline/ipu3/ipu3_pipeline_test.cpp
+++ b/test/pipeline/ipu3/ipu3_pipeline_test.cpp
@@ -71,11 +71,6 @@ int IPU3PipelineTest::init()
return TestSkip;
}
- if (cio2->open()) {
- cerr << "Failed to open media device " << cio2->deviceNode() << endl;
- return TestFail;
- }
-
/*
* Camera sensor are connected to the CIO2 unit.
* Count how many sensors are connected in the system
diff --git a/test/v4l2_subdevice/v4l2_subdevice_test.cpp b/test/v4l2_subdevice/v4l2_subdevice_test.cpp
index 5810ef3c..562a638c 100644
--- a/test/v4l2_subdevice/v4l2_subdevice_test.cpp
+++ b/test/v4l2_subdevice/v4l2_subdevice_test.cpp
@@ -45,13 +45,6 @@ int V4L2SubdeviceTest::init()
return TestSkip;
}
- int ret = media_->open();
- if (ret) {
- cerr << "Unable to open media device: " << media_->deviceNode()
- << ": " << strerror(ret) << endl;
- return TestSkip;
- }
-
MediaEntity *videoEntity = media_->getEntityByName("Scaler");
if (!videoEntity) {
cerr << "Unable to find media entity 'Scaler'" << endl;
@@ -59,8 +52,7 @@ int V4L2SubdeviceTest::init()
}
scaler_ = new V4L2Subdevice(videoEntity);
- ret = scaler_->open();
- if (ret) {
+ if (scaler_->open()) {
cerr << "Unable to open video subdevice "
<< scaler_->entity()->deviceNode() << endl;
return TestSkip;