diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2012-01-17 18:40:05 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2012-01-17 18:40:05 -0500 |
commit | a01dd3549cca620de47fae824198473c51a12f49 (patch) | |
tree | ded0eca6f0f33425dc131762f22eeebe242710f5 /indra | |
parent | b6a08ad007deb855ce4d428654279206853a3b99 (diff) |
Make NamedTempFile::peep() a public member for debugging unit tests.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/test/namedtempfile.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/indra/test/namedtempfile.h b/indra/test/namedtempfile.h index 9670d4db53..7ffb2836cc 100644 --- a/indra/test/namedtempfile.h +++ b/indra/test/namedtempfile.h @@ -59,6 +59,16 @@ public: std::string getName() const { return mPath; } + void peep() + { + std::cout << "File '" << mPath << "' contains:\n"; + std::ifstream reader(mPath.c_str()); + std::string line; + while (std::getline(reader, line)) + std::cout << line << '\n'; + std::cout << "---\n"; + } + private: void createFile(const std::string& pfx, const Streamer& func) { @@ -96,16 +106,6 @@ private: llassert_always(writelen == data.length()); } - void peep() - { - std::cout << "File '" << mPath << "' contains:\n"; - std::ifstream reader(mPath.c_str()); - std::string line; - while (std::getline(reader, line)) - std::cout << line << '\n'; - std::cout << "---\n"; - } - std::string mPath; apr_pool_t* mPool; }; |