mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 05:09:43 +00:00
Add a broken test for r_str_scanf for my future self
This commit is contained in:
parent
be75b2d9ee
commit
4fc2daf5e3
@ -21,6 +21,14 @@ bool test_r_str_scanf(void) {
|
||||
mu_assert_eq (0x120000023b2d8000, bignum, "portable ut64 scanf failed");
|
||||
mu_assert_eq (res, 1, "return value for scanf failed");
|
||||
|
||||
#if 0
|
||||
// XXX the 0x%08Lx syntax is not supported by r_str_scanf, but it does for libc's scanf .. uncomment this test when implemented
|
||||
bignum = 0;
|
||||
res = r_str_scanf ("0x000000023b2d8000", "0x%08Lx", &bignum);
|
||||
mu_assert_eq (0x23b2d8000, bignum, "portable ut64 scanf failed");
|
||||
mu_assert_eq (res, 1, "return value for scanf failed");
|
||||
#endif
|
||||
|
||||
mu_end;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user