diff options
author | Greg Hudson <ghudson@mit.edu> | 2014-02-18 01:14:01 -0500 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2015-02-06 18:32:31 -0500 |
commit | 4e4895c6e2d3ebed8f4ccd1aafe2c8c0cd52d884 (patch) | |
tree | 2ea8f83012cadaa46b993cec367daa9a1a551c8d | |
parent | e34baafc74301048eba687b5e6dfb49dccaf3d60 (diff) | |
download | krb5-4e4895c6e2d3ebed8f4ccd1aafe2c8c0cd52d884.zip krb5-4e4895c6e2d3ebed8f4ccd1aafe2c8c0cd52d884.tar.gz krb5-4e4895c6e2d3ebed8f4ccd1aafe2c8c0cd52d884.tar.bz2 |
Use system dictionary for db2 tests again
The built-in word list is not long enough for all of the libdb2 tests
to run properly. Revert d21a86e47a7cda29225013e08d060095b94b2ee7 and
go back to using the system dictionary if we find one. However, omit
any lines from the chosen word list which contain non-alphabetical
characters.
(cherry picked from commit dba768e873d3ae34cfb2ff9d9c2d3644981f23a5)
ticket: 8116
version_fixed: 1.11.6
status: resolved
-rw-r--r-- | src/plugins/kdb/db2/libdb2/test/run.test | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/kdb/db2/libdb2/test/run.test b/src/plugins/kdb/db2/libdb2/test/run.test index 7d9f0fe..d99b42d 100644 --- a/src/plugins/kdb/db2/libdb2/test/run.test +++ b/src/plugins/kdb/db2/libdb2/test/run.test @@ -71,10 +71,11 @@ main() } getnwords() { - # Delete blank lines because the db code appears not to - # like empty keys. On Debian Linux, $DICT appears to contain - # some non-ASCII characters, and "rev" chokes on them. - sed -e '/^$/d' < $DICT | cat -v | sed -e ${1}q + # Delete blank lines because the db code appears not to like + # empty keys. Omit lines with non-alphanumeric characters to + # avoid shell metacharacters and non-ASCII characters which + # could cause 'rev' to choke. + LC_ALL=C sed -e '/^$/d' -e '/[^A-Za-z]/d' < $DICT | sed -e ${1}q } # Take the first hundred entries in the dictionary, and make them |