Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/atf/dist/atf-run Per gson@'s request, make thes...



details:   https://anonhg.NetBSD.org/src/rev/465208115c80
branches:  trunk
changeset: 758128:465208115c80
user:      jmmv <jmmv%NetBSD.org@localhost>
date:      Wed Oct 20 16:25:01 2010 +0000

description:
Per gson@'s request, make these tests less verbose so that the output of
atf-run is not twice as large as before.  This is a pull-up of
699284e5c0d0a375958293e578af4e02d68d1182.

(I don't think it's reasonable to intentionally cripple tests as I have
just done here.  In the future I would like to only report the output of
failed test cases, which would allow us to undo this, but not there yet.)

diffstat:

 external/bsd/atf/dist/atf-run/io_test.cpp |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r a59cb3897391 -r 465208115c80 external/bsd/atf/dist/atf-run/io_test.cpp
--- a/external/bsd/atf/dist/atf-run/io_test.cpp Wed Oct 20 15:02:17 2010 +0000
+++ b/external/bsd/atf/dist/atf-run/io_test.cpp Wed Oct 20 16:25:01 2010 +0000
@@ -328,7 +328,12 @@
 class mock_muxer : public atf::atf_run::muxer {
     void line_callback(const size_t index, const std::string& line)
     {
-        std::cout << "line_callback(" << index << ", " << line << ")\n";
+        // The following should be enabled but causes the output to be so big
+        // that it is annoying.  Reenable at some point if we make atf store
+        // the output of the test cases in some other way (e.g. only if a test
+        // failes), because this message is the only help in seeing how the
+        // test fails.
+        //std::cout << "line_callback(" << index << ", " << line << ")\n";
         check_stream(std::cout);
         switch (index) {
         case 0: lines0.push_back(line); break;



Home | Main Index | Thread Index | Old Index