Changeset 1567 for branches/0.10-stable


Ignore:
Timestamp:
Feb 5, 2015, 9:00:33 AM (5 years ago)
Author:
Peter Johansson
Message:

fix inaccurate test code which caused spurious test failure; closes #527 (again!)

Location:
branches/0.10-stable/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/0.10-stable/test/Makefile.am

    r1565 r1567  
    6464
    6565# tests not yet passing are listed here
    66 XFAIL_TESTS = htmlstream.test
     66XFAIL_TESTS =
    6767
    6868noinst_HEADERS = Suite.h
  • branches/0.10-stable/test/htmlstream.cc

    r1565 r1567  
    5555  // check that we can use stream 'out' directly without and that the
    5656  // output is not HTMLized
    57   out.clear();
    5857  out << in;
    59   if (out.str() != in) {
     58  if (out.str() != correct+in) {
    6059    suite.out() << "error incorrect behaviour of base stream: ";
    61     suite.out() << "'" << in << " gives '" << out.str() << "'\n";
    62     suite.out() << "expected '" << in << "'\n";
     60    suite.out() << "output: '" << out.str() << "'; ";
     61    suite.out() << "expected '" << correct+in << "'\n";
    6362    suite.add(false);
    6463  }
Note: See TracChangeset for help on using the changeset viewer.