From 549a391d6438e828001eeeaf235b080c054a7bf3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 08:14:41 +0200 Subject: Adding upstream version 2.2.4. Signed-off-by: Daniel Baumann --- test/interactive-helper/test_udevcdrom.cc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/interactive-helper/test_udevcdrom.cc (limited to 'test/interactive-helper/test_udevcdrom.cc') diff --git a/test/interactive-helper/test_udevcdrom.cc b/test/interactive-helper/test_udevcdrom.cc new file mode 100644 index 0000000..2355186 --- /dev/null +++ b/test/interactive-helper/test_udevcdrom.cc @@ -0,0 +1,23 @@ +#include + +#include + +#include +#include +#include +#include +#include + +int main() +{ + pkgUdevCdromDevices c; + assert(c.Dlopen()); + + std::vector l; + l = c.Scan(); + assert(l.empty() == false); + for (size_t i = 0; i < l.size(); ++i) + std::cerr << l[i].DeviceName << " " + << l[i].Mounted << " " + << l[i].MountPath << std::endl; +} -- cgit v1.2.3