*** empty log message ***
This commit is contained in:
parent
4691e7ac8e
commit
f261d82df5
3 changed files with 12 additions and 10 deletions
2
acprep
2
acprep
|
|
@ -17,7 +17,7 @@ else
|
||||||
fi
|
fi
|
||||||
autoconf
|
autoconf
|
||||||
|
|
||||||
INCDIRS="-I/sw/include -I/usr/local/include/boost-1_33 -I/usr/include/httpd/xml"
|
INCDIRS="-I/sw/include -I/sw/include/boost -I/usr/include/httpd/xml"
|
||||||
#INCDIRS="$INCDIRS -I/sw/include/libofx"
|
#INCDIRS="$INCDIRS -I/sw/include/libofx"
|
||||||
INCDIRS="$INCDIRS -I/usr/include/python2.3"
|
INCDIRS="$INCDIRS -I/usr/include/python2.3"
|
||||||
INCDIRS="$INCDIRS -Wno-long-double"
|
INCDIRS="$INCDIRS -Wno-long-double"
|
||||||
|
|
|
||||||
|
|
@ -20,25 +20,27 @@ public:
|
||||||
TS_ASSERT_EQUALS(0, emptyStream.tellg());
|
TS_ASSERT_EQUALS(0, emptyStream.tellg());
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE)
|
|
||||||
void testEmptyFileIsNotXMLFile()
|
void testEmptyFileIsNotXMLFile()
|
||||||
{
|
{
|
||||||
|
#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE)
|
||||||
stringstream emptyStream(stringstream::in);
|
stringstream emptyStream(stringstream::in);
|
||||||
xml_parser_t xmlParser;
|
xml_parser_t xmlParser;
|
||||||
TS_ASSERT(!xmlParser.test(emptyStream));
|
TS_ASSERT(!xmlParser.test(emptyStream));
|
||||||
TS_ASSERT(emptyStream.good());
|
TS_ASSERT(emptyStream.good());
|
||||||
TS_ASSERT_EQUALS(0, emptyStream.tellg());
|
TS_ASSERT_EQUALS(0, emptyStream.tellg());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void testEmptyFileIsNotGnuCashFile()
|
void testEmptyFileIsNotGnuCashFile()
|
||||||
{
|
{
|
||||||
|
#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE)
|
||||||
stringstream emptyStream(stringstream::in);
|
stringstream emptyStream(stringstream::in);
|
||||||
gnucash_parser_t gnucashParser;
|
gnucash_parser_t gnucashParser;
|
||||||
TS_ASSERT(!gnucashParser.test(emptyStream));
|
TS_ASSERT(!gnucashParser.test(emptyStream));
|
||||||
TS_ASSERT(emptyStream.good());
|
TS_ASSERT(emptyStream.good());
|
||||||
TS_ASSERT_EQUALS(0, emptyStream.tellg());
|
TS_ASSERT_EQUALS(0, emptyStream.tellg());
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
void testEmptyFileIsNotBinaryFile()
|
void testEmptyFileIsNotBinaryFile()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue