Don't use \a as a test case for escaped letters, because people might

expect it to generate a BEL character, and I might at some point
decide to implement that.  Instead, use \z, which has no special
meaning in any C-like language I know of.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@563 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2012-04-05 12:20:18 +00:00
parent 4063fef039
commit 4ee06f968e
1 changed files with 5 additions and 5 deletions

View File

@ -408,9 +408,9 @@ T_FUNC(escaped_letter, "escaped letter")
int ret;
orw_open();
orw_output("\\a\n");
orw_output("\\z\n");
orw_rewind();
ret = orw_expect("a", 0 /*lines*/, 0 /*eof*/, 1 /*eol*/);
ret = orw_expect("z", 0 /*lines*/, 0 /*eof*/, 1 /*eol*/);
orw_close();
return (ret);
}
@ -536,10 +536,10 @@ T_FUNC(escaped_letters_within_quotes, "escaped letters within quotes")
int ret;
orw_open();
orw_output("\"\\a\" '\\a'\n");
orw_output("\"\\z\" '\\z'\n");
orw_rewind();
ret = orw_expect("\\a", 0 /*lines*/, 0 /*eof*/, 0 /*eol*/) &&
orw_expect("\\a", 0 /*lines*/, 0 /*eof*/, 1 /*eol*/);
ret = orw_expect("\\z", 0 /*lines*/, 0 /*eof*/, 0 /*eol*/) &&
orw_expect("\\z", 0 /*lines*/, 0 /*eof*/, 1 /*eol*/);
orw_close();
return (ret);
}