diff options
author | Philip Flohr <philip.flohr@hadiko.de> | 2019-02-22 11:07:19 +0100 |
---|---|---|
committer | Philip Flohr <philip.flohr@hadiko.de> | 2019-02-22 13:08:08 +0100 |
commit | 5b7f9dffbc62a3af2e9663f32c34d27adee319b3 (patch) | |
tree | e4b8a94a3679ad9c74f2dfbe10612f0a8e89eb18 /tests/unittests/unittests.c | |
parent | 6034b833be41909982b0d2bdac0a1d8499ad8e76 (diff) | |
download | profani-tty-5b7f9dffbc62a3af2e9663f32c34d27adee319b3.tar.gz |
Fix broken support for case-sensitive account names
Don't lower account name before calling accounts_get_account(). Only lower if there is no account with the given name and the name is interpreted as a jid. Updated unittests to test this behaviour. Fixes #725 .
Diffstat (limited to 'tests/unittests/unittests.c')
-rw-r--r-- | tests/unittests/unittests.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unittests/unittests.c b/tests/unittests/unittests.c index ac2894a5..86d0ac62 100644 --- a/tests/unittests/unittests.c +++ b/tests/unittests/unittests.c @@ -244,7 +244,10 @@ int main(int argc, char* argv[]) { unit_test_setup_teardown(cmd_connect_fail_message, load_preferences, close_preferences), - unit_test_setup_teardown(cmd_connect_lowercases_argument, + unit_test_setup_teardown(cmd_connect_lowercases_argument_with_account, + load_preferences, + close_preferences), + unit_test_setup_teardown(cmd_connect_lowercases_argument_with_no_account, load_preferences, close_preferences), unit_test_setup_teardown(cmd_connect_asks_password_when_not_in_account, |