diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-08-17 18:14:27 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-08-17 18:14:27 +0200 |
commit | 178dd062eeaa1d7e56770455e005dc27aa71f026 (patch) | |
tree | 0dd7241e4fa9a06090d5cd8da4c7de87065ba08b /test/interactive-helper/test_udevcdrom.cc | |
parent | ec78b277382e27509a6dec91af4a7a524a422e0f (diff) | |
parent | fe268128119bc73403003a29b66c927b9c36690d (diff) |
merged lp:~donkult/apt/sid
Diffstat (limited to 'test/interactive-helper/test_udevcdrom.cc')
-rw-r--r-- | test/interactive-helper/test_udevcdrom.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/interactive-helper/test_udevcdrom.cc b/test/interactive-helper/test_udevcdrom.cc new file mode 100644 index 000000000..dc25ab357 --- /dev/null +++ b/test/interactive-helper/test_udevcdrom.cc @@ -0,0 +1,18 @@ +#include <apt-pkg/cdrom.h> +#include <stdio.h> +#include <assert.h> + +int main() +{ + pkgUdevCdromDevices c; + assert(c.Dlopen()); + + vector<CdromDevice> 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; + +} |