Changeset 1565 for branches/0.10-stable


Ignore:
Timestamp:
Feb 5, 2015, 3:05:51 AM (5 years ago)
Author:
Peter Johansson
Message:

Extend test of HtmlStream? to expose bug introduced in changeset r1563. refs #527.

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

Legend:

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

    r1508 r1565  
    44
    55# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Jari Häkkinen, Peter Johansson
    6 # Copyright (C) 2011, 2012 Peter Johansson
     6# Copyright (C) 2011, 2012, 2015 Peter Johansson
    77#
    88# This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    6464
    6565# tests not yet passing are listed here
    66 XFAIL_TESTS =
     66XFAIL_TESTS = htmlstream.test
    6767
    6868noinst_HEADERS = Suite.h
  • branches/0.10-stable/test/htmlstream.cc

    r1164 r1565  
    22
    33/*
    4   Copyright (C) 2009, 2010 Peter Johansson
     4  Copyright (C) 2009, 2010, 2015 Peter Johansson
    55
    66  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    5252    suite.add(false);
    5353  }
     54
     55  // check that we can use stream 'out' directly without and that the
     56  // output is not HTMLized
     57  out.clear();
     58  out << in;
     59  if (out.str() != in) {
     60    suite.out() << "error incorrect behaviour of base stream: ";
     61    suite.out() << "'" << in << " gives '" << out.str() << "'\n";
     62    suite.out() << "expected '" << in << "'\n";
     63    suite.add(false);
     64  }
    5465}
Note: See TracChangeset for help on using the changeset viewer.