diff options
| author | msheby <msheby@cinecert.com> | 2009-04-08 18:37:05 +0000 |
|---|---|---|
| committer | msheby <> | 2009-04-08 18:37:05 +0000 |
| commit | 020cc61b53ef2a3f95c2a82ef86ef821706a2858 (patch) | |
| tree | 81977e025f8c4c1b49ea7da4bd63a9b4b1ba6719 /src/path-test.cpp | |
| parent | 6e31ef7559099a10d42067fa57739b5e928d9277 (diff) | |
Add tests for new functions.
Diffstat (limited to 'src/path-test.cpp')
| -rw-r--r-- | src/path-test.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/path-test.cpp b/src/path-test.cpp index c0bbce6..5d54a37 100644 --- a/src/path-test.cpp +++ b/src/path-test.cpp @@ -92,6 +92,12 @@ main(int argc, const char** argv) fprintf(stderr, "xx: \"%s\"\n", i->c_str()); assert(PathsAreEquivalent(PathMakeLocal(PathMakeCanonical(Path_7), "/tmp"), "fooo")); + string Path_8 = "tmp/foo/bar/ack"; + CreateDirectoriesInPath(Path_8); + assert(PathExists(Path_8)); + DeletePath(Path_8); + assert(!PathExists(Path_8)); + PathList_t InList, OutList; InList.push_back("tmp"); InList.push_back("Darwin"); @@ -120,6 +126,11 @@ main(int argc, const char** argv) cerr << "----------------------------------" << endl; + fsize_t free_space, total_space; + FreeSpaceForPath("/", free_space, total_space); + cerr << "Free space: " << free_space << endl; + cerr << "Total space: " << total_space << endl; + cerr << "OK" << endl; return 0; |
