]>
git.saurik.com Git - apt.git/blob - test/libapt/fileutl_test.cc
3 #include <apt-pkg/error.h>
4 #include <apt-pkg/fileutl.h>
14 std::vector
<std::string
> files
;
17 files
= Glob("*.lst");
18 if (files
.size() != 1)
25 files
= Glob("xxxyyyzzz");
26 if (files
.size() != 0 || _error
->PendingError())
32 // many matches (number is a bit random)
34 if (files
.size() < 10)
42 equals(GetTempDir(), "/tmp");
44 setenv("TMPDIR", "", 1);
45 equals(GetTempDir(), "/tmp");
47 setenv("TMPDIR", "/not-there-no-really-not", 1);
48 equals(GetTempDir(), "/tmp");
50 setenv("TMPDIR", "/usr", 1);
51 equals(GetTempDir(), "/usr");