google / google/google-authenticator-libpam
`make test` FAILs at error: "Assertion `num_prompts_shown == expected_prompts_shown' failed.; Invalid verification code"
- Dominant language
- C
- Stars
- 2k
- Forks
- 305
- PR merge metrics
- No merged PRs in 30d
Description
_From @ghost on December 28, 2014 4:0_
checking out latest source
```
git clone https://code.google.com/p/google-authenticator
git log | head
commit 1d0bf2e6cff7a5e503580d29ca33634ce09386ca
Author: Thomas Habets
Date: Fri Feb 14 17:17:42 2014 +0000
Add space in config file between quote and RATE_LIMIT, like spec says.
commit 86af4c32a2940b13397cac52eee435e6acedb8a5
Author: Thomas Habets
Date: Thu Jan 30 15:17:38 2014 +0000
```
building on
```
lsb_release -rd
Description: openSUSE 13.2 (Harlequin) (x86_64)
Release: 13.2
```
with
```
gcc -V
gcc: error: unrecognized command line option ‘-V’
gcc: fatal error: no input files
compilation terminated.
[1083][root@onyxEdgar: ../src/google-authenticator]$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/5/lto-wrapper
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada,go --with-gxx-include-dir=/usr/include/c++/5 --enable-ssp --disable-libssp --disable-libvtv --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --enable-linker-build-id --enable-linux-futex --program-suffix=-5 --without-system-libunwind --enable-multilib --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
gcc version 5.0.0 20141215 (experimental) [trunk revision 218749] (SUSE Linux)
```
completes ok
```
cd google-authenticator/libpam
make
(no errors)
```
but test FAILs
```
make test
./pam_google_authenticator_unittest
Testing base32 encoding
Testing base32 decoding
Testing HMAC_SHA1
Loading PAM module
Running tests, querying for verification code
Testing failed login attempt
Testing required number of digits
Testing a blank response
Test handling of missing state files
Testing successful login
Testing WINDOW_SIZE option
Testing DISALLOW_REUSE option
Testing RATE_LIMIT option
Testing TIME_SKEW
pam_google_authenticator_unittest: pam_google_authenticator_unittest.c:137: verify_prompts_shown: Assertion `num_prompts_shown == expected_prompts_shown' failed.
Invalid verification code
Makefile:36: recipe for target 'test' failed
make: *** [test] Error 1
```
seems to have been raised before,
```
[CentOS] CentOS 5.9 and google-authenticator
http://lists.centos.org/pipermail/centos/2013-June/135586.html
```
but, afaict, no resolution there
_Copied from original issue: google/google-authenticator#470_
Contributor guide
Assessment
This issue has not been assessed yet.