timmerk / nfc-tools

Automatically exported from code.google.com/p/nfc-tools
0 stars 0 forks source link

test_mifare_ultralight_write failed! #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. configure,
2. compile,
3. run tests.

What do you see?
16) Failure: test_mifare_ultralight_write
mifare_ultralight_read() failed
<0 == res>
expected: <0>
  actual: <-1>
./test_mifare_ultralight.c:51: test_mifare_ultralight_write(): 
cut_assert_equal_int(0, res, cut_test_context_set_current_result_user_message( 
cut_test_context_current_peek(), 
cut_test_context_take_printf(cut_test_context_current_peek(), 
"mifare_ultralight_read() failed")))

Known affected version: trunk and 0.3.1

@Romain: could you release a new version after fixing this bug, please? Thanks

Original issue reported on code.google.com by romu...@libnfc.org on 4 Apr 2011 at 10:22

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r778.

I can't reproduce this bug, but saw that the mifare_ultralight_write() was
implemented in an old-school way.  I updated the code so that you should have
better traces when compiling the library in debug mode and running:

romain@marvin ~/Projects/libfreefare % cutter -n test_mifare_ultralight_write 
test
===> 0000   30 07                                            |0.              |
<=== 0000   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
===> 0000   a2 07 12 34 56 78                                |...4Vx          |
===> 0000   30 07                                            |0.              |
<=== 0000   12 34 56 78 00 00 00 00 00 00 00 00 00 00 00 00  |.4Vx............|
===> 0000   a2 07 aa 55 00 ff                                |...U..          |
===> 0000   30 07                                            |0.              |
<=== 0000   aa 55 00 ff 00 00 00 00 00 00 00 00 00 00 00 00  |.U..............|
===> 0000   a2 07 00 00 00 00                                |......          |
===> 0000   30 07                                            |0.              |
<=== 0000   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
.

Finished in 0,548238 seconds (total: 0,069079 seconds)

1 test(s), 12 assertion(s), 0 failure(s), 0 error(s), 0 pending(s), 0 
omission(s), 0 notification(s)
100% passed

Original comment by rtarti...@il4p.fr on 5 Apr 2011 at 9:05

GoogleCodeExporter commented 9 years ago
I can't reproduce this bug so set it's status to Feedback.

Original comment by romain.t...@gmail.com on 23 Apr 2011 at 1:13

GoogleCodeExporter commented 9 years ago
This issue is invalid. The problem was in our code. Sorry for that.

Original comment by emanuele.bertoldi on 28 Sep 2011 at 2:18

GoogleCodeExporter commented 9 years ago
Thanks for feedback, we were not able to reproduce the bug...

Original comment by romu...@libnfc.org on 28 Sep 2011 at 3:26

GoogleCodeExporter commented 9 years ago

Original comment by romu...@libnfc.org on 28 Sep 2011 at 3:29