mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
test/libconfig: make indexing more consistent
The other tests have converted to two digit decimal, the commit does the same to the remaining test that was printing out indices in hex.
This commit is contained in:
parent
8dbd5deb8d
commit
7406abf5e0
1 changed files with 12 additions and 12 deletions
|
@ -713,23 +713,23 @@ cat c_head2 - c_tail <<'EOF' | test_C ${MAIL_DIR} %NULL% %NULL%
|
||||||
key < NOTMUCH_CONFIG_LAST;
|
key < NOTMUCH_CONFIG_LAST;
|
||||||
key = (notmuch_config_key_t)(key + 1)) {
|
key = (notmuch_config_key_t)(key + 1)) {
|
||||||
const char *val = notmuch_config_get (db, key);
|
const char *val = notmuch_config_get (db, key);
|
||||||
printf("%x: '%s'\n", key, val ? val : "NULL" );
|
printf("%02d: '%s'\n", key, val ? val : "NULL" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
cat <<'EOF' >EXPECTED
|
cat <<'EOF' >EXPECTED
|
||||||
== stdout ==
|
== stdout ==
|
||||||
0: 'MAIL_DIR'
|
00: 'MAIL_DIR'
|
||||||
1: 'MAIL_DIR'
|
01: 'MAIL_DIR'
|
||||||
2: 'MAIL_DIR/.notmuch/hooks'
|
02: 'MAIL_DIR/.notmuch/hooks'
|
||||||
3: 'MAIL_DIR/.notmuch/backups'
|
03: 'MAIL_DIR/.notmuch/backups'
|
||||||
4: 'foo;bar;fub'
|
04: 'foo;bar;fub'
|
||||||
5: 'unread;inbox'
|
05: 'unread;inbox'
|
||||||
6: 'sekrit_junk'
|
06: 'sekrit_junk'
|
||||||
7: 'true'
|
07: 'true'
|
||||||
8: 'test_suite@notmuchmail.org'
|
08: 'test_suite@notmuchmail.org'
|
||||||
9: 'test_suite_other@notmuchmail.org;test_suite@otherdomain.org'
|
09: 'test_suite_other@notmuchmail.org;test_suite@otherdomain.org'
|
||||||
a: 'Notmuch Test Suite'
|
10: 'Notmuch Test Suite'
|
||||||
== stderr ==
|
== stderr ==
|
||||||
EOF
|
EOF
|
||||||
test_expect_equal_file EXPECTED OUTPUT
|
test_expect_equal_file EXPECTED OUTPUT
|
||||||
|
|
Loading…
Reference in a new issue