diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-07-30 15:31:39 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-07-30 15:31:39 +0200 |
commit | 57722714255118560c98b3245413ff5f693b993c (patch) | |
tree | 48f4e1c25d7fd07bdbec6e7effa792739c157402 /test/test_udevcdrom.cc | |
parent | 8dfb8a0ab2c2a06e319678701c144e5156d7e869 (diff) | |
parent | d5752e18bed18c706c93f5c43c61016c72132ede (diff) |
merged from debian-sid
Diffstat (limited to 'test/test_udevcdrom.cc')
-rw-r--r-- | test/test_udevcdrom.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/test_udevcdrom.cc b/test/test_udevcdrom.cc new file mode 100644 index 000000000..e65c7a297 --- /dev/null +++ b/test/test_udevcdrom.cc @@ -0,0 +1,19 @@ +#include <apt-pkg/cdrom.h> +#include <stdio.h> +#include <assert.h> + +int main() +{ + int i; + pkgUdevCdromDevices c; + assert(c.Dlopen()); + + vector<CdromDevice> l; + l = c.Scan(); + assert(l.size() > 0); + for (i=0;i<l.size();i++) + std::cerr << l[i].DeviceName << " " + << l[i].Mounted << " " + << l[i].MountPath << std::endl; + +} |