diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-01-04 14:48:18 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-01-04 14:48:18 +0000 |
| commit | 086b83c4132189120b7f1685cb39efba56d71c2c (patch) | |
| tree | d42475c7e133c4ad078eb8da3acd0ee2b6206942 /asdcplib/src/path-test.cpp | |
| parent | 5c92b6dbf3bc7d905938ad9972aec5f0ee106935 (diff) | |
Copy asdcplib 2.5.11 into the tree.
Diffstat (limited to 'asdcplib/src/path-test.cpp')
| -rw-r--r-- | asdcplib/src/path-test.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/asdcplib/src/path-test.cpp b/asdcplib/src/path-test.cpp index b556bddc..bbd0750b 100644 --- a/asdcplib/src/path-test.cpp +++ b/asdcplib/src/path-test.cpp @@ -25,7 +25,7 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /*! \file path-test.cpp - \version $Id: path-test.cpp,v 1.8 2009/07/10 18:14:01 jhurst Exp $ + \version $Id: path-test.cpp,v 1.10 2015/02/22 20:16:28 jhurst Exp $ \brief test harness for path manglers defined in KM_fileio.h */ @@ -111,8 +111,15 @@ main(int argc, const char** argv) FindInPaths(PathMatchAny(), InList, OutList); PathList_t::iterator pi; - for ( pi = OutList.begin(); pi != OutList.end(); pi++ ) - cerr << *pi << endl; + if ( false ) + { + for ( pi = OutList.begin(); pi != OutList.end(); pi++ ) + cerr << *pi << endl; + } + else + { + cerr << OutList.size() << ( ( OutList.size() == 1 ) ? " file" : " files" ) << endl; + } cerr << "----------------------------------" << endl; OutList.clear(); @@ -134,6 +141,7 @@ main(int argc, const char** argv) FreeSpaceForPath("/", free_space, total_space); cerr << "Free space: " << free_space << endl; cerr << "Total space: " << total_space << endl; + cerr << "Used space: " << ( (total_space - free_space ) / float(total_space) ) << endl; cerr << "OK" << endl; |
