do not output color in the testcases if stdout/stderr are not a /dev/pts
[ntk/apt.git] / test / interactive-helper / test_udevcdrom.cc
CommitLineData
cbc9bed8
MV
1#include <apt-pkg/cdrom.h>
2#include <stdio.h>
3#include <assert.h>
4
5int main()
6{
7 int i;
8 pkgUdevCdromDevices c;
9 assert(c.Dlopen());
10
11 vector<CdromDevice> l;
12 l = c.Scan();
f7f0d6c7 13 assert(l.empty() == false);
cbc9bed8
MV
14 for (i=0;i<l.size();i++)
15 std::cerr << l[i].DeviceName << " "
16 << l[i].Mounted << " "
17 << l[i].MountPath << std::endl;
18
19}