1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-01-20 19:52:16 +01:00

add tests for empty otp part to check_user_token()

This commit is contained in:
Klas Lindfors 2016-06-13 10:49:06 +02:00
parent 33e7013916
commit bda491c413

View File

@ -92,6 +92,10 @@ static void test_check_user_token(void) {
assert(ret == 1);
ret = check_user_token(file, "foo2", "vvvvvvvvvvcc", 1);
assert(ret == -1);
ret = check_user_token(file, "foo2", "", 1);
assert(ret == -1);
ret = check_user_token(file, "foo", "", 1);
assert(ret == -2);
remove(file);
}