diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-02-21 22:46:35 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-02-22 03:25:30 +0100 |
commit | 8d97d34f5872865af4364ad0af1cdd88dbd7bd82 (patch) | |
tree | 2353eca10e4697cf20b852b9e58ab80a8b21138a /tests/auc/auc_3g_test.c | |
parent | 428c9478cd54371a7f8728ca159db57415a1517d (diff) |
cosmetic: refactor auc_compute_vectors(), add debug log
Make the generation logic easier to understand (hopefully).
Massively extend debug logging, which serves to illustrate the current AUTS
failure shown by auc_3g_test.
Since DAUC now logs the vectors, there is no need to print the vectors in
VEC_IS() in auc_3g_test and auc_ts_55_205_test_sets anymore. Adjust testlog
expectations accordingly.
Change-Id: Ifb36d010a4ac64c765517e15b9074424ec19cc60
Diffstat (limited to 'tests/auc/auc_3g_test.c')
-rw-r--r-- | tests/auc/auc_3g_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auc/auc_3g_test.c b/tests/auc/auc_3g_test.c index f8ff67a..51184c5 100644 --- a/tests/auc/auc_3g_test.c +++ b/tests/auc/auc_3g_test.c @@ -69,7 +69,6 @@ char *vec_str(const struct osmo_auth_vector *vec) #define VEC_IS(vec, expect) do { \ char *_is = vec_str(vec); \ - fprintf(stderr, "auth vector ==\n%s\n", _is); \ if (strcmp(_is, expect)) { \ fprintf(stderr, "MISMATCH! expected ==\n%s\n", \ expect); \ @@ -84,7 +83,8 @@ char *vec_str(const struct osmo_auth_vector *vec) } \ } \ OSMO_ASSERT(false); \ - } \ + } else \ + fprintf(stderr, "vector matches expectations\n"); \ } while (0) uint8_t fake_rand[16] = { 0 }; |