Corrections to the regression tests

This commit is contained in:
John Wiegley 2011-03-03 23:47:11 -05:00
parent 013aefd9fd
commit dc03c646eb
2 changed files with 3 additions and 3 deletions

View file

@ -51,7 +51,7 @@ string error_context()
string file_context(const path& file, const std::size_t line) string file_context(const path& file, const std::size_t line)
{ {
std::ostringstream buf; std::ostringstream buf;
buf << file << ", line " << line << ": "; buf << '"' << file.string() << "\", line " << line << ": ";
return buf.str(); return buf.str();
} }

View file

@ -1150,7 +1150,7 @@ post_t * instance_t::parse_post(char * line,
if (context.strict && ! post->account->has_flags(ACCOUNT_KNOWN)) { if (context.strict && ! post->account->has_flags(ACCOUNT_KNOWN)) {
if (post->_state == item_t::UNCLEARED) if (post->_state == item_t::UNCLEARED)
warning_(_("\"%1\", line %2: Unknown account '%3'") warning_(_("\"%1\", line %2: Unknown account '%3'")
<< pathname << linenum << post->account->fullname()); << pathname.string() << linenum << post->account->fullname());
post->account->add_flags(ACCOUNT_KNOWN); post->account->add_flags(ACCOUNT_KNOWN);
} }
@ -1185,7 +1185,7 @@ post_t * instance_t::parse_post(char * line,
! post->amount.commodity().has_flags(COMMODITY_KNOWN)) { ! post->amount.commodity().has_flags(COMMODITY_KNOWN)) {
if (post->_state == item_t::UNCLEARED) if (post->_state == item_t::UNCLEARED)
warning_(_("\"%1\", line %2: Unknown commodity '%3'") warning_(_("\"%1\", line %2: Unknown commodity '%3'")
<< pathname << linenum << post->amount.commodity()); << pathname.string() << linenum << post->amount.commodity());
post->amount.commodity().add_flags(COMMODITY_KNOWN); post->amount.commodity().add_flags(COMMODITY_KNOWN);
} }