Philippe Teuwen
|
e4df2f3334
|
astyle
|
2017-02-18 13:05:59 +01:00 |
|
Philippe Teuwen
|
9cb9e0e6da
|
Fix cppcheck warning: The scope of the variable X can be reduced.
|
2013-04-05 14:38:03 +02:00 |
|
Romuald Conty
|
2d53208082
|
Fix unit tests
This commit bring tests to life!
New issue
Summary: test_dep_states test fails
When first device is idle, the second one states "RF Transmission Error" instead of simply not found any available device.
Full cutter log here:
debug libnfc.chip.pn53x InJumpForDEP
debug libnfc.chip.pn53x Timeout values: 300
debug libnfc.bus.uart TX: 00 00 ff 05 fb d4 56 00 00 00 d6 00
debug libnfc.bus.uart RX: 00 00 ff 00 ff 00
debug libnfc.chip.pn53x PN53x ACKed
debug libnfc.bus.uart Timeout!
debug libnfc.chip.pn53x InJumpForDEP
debug libnfc.chip.pn53x Timeout values: 300
debug libnfc.bus.uart TX: 00 00 ff 05 fb d4 56 00 00 00 d6 00
debug libnfc.bus.uart RX: 00 00 ff 00 ff 00
debug libnfc.chip.pn53x PN53x ACKed
debug libnfc.bus.uart RX: 00 00 ff 03 fd
debug libnfc.bus.uart RX: d5 57
debug libnfc.bus.uart RX: 01
debug libnfc.bus.uart RX: d3 00
debug libnfc.chip.pn53x Chip error: "Timeout" (01), returned error: "RF Transmission Error" (-20))
F
===============================================================================
Failure: test_dep_states
Problem with nfc_idle
<0 == res>
expected: <0>
actual: <-20>
diff:
? -20
./test_device_modes_as_dep.c:171: initiator_thread(): 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(), "Problem with nfc_idle")))
===============================================================================
|
2013-01-18 18:28:45 +01:00 |
|
Philippe Teuwen
|
568317929d
|
astyle --formatted --mode=c --indent=spaces=2 --indent-switches --indent-preprocessor --keep-one-line-blocks --max-instatement-indent=60 --brackets=linux --pad-oper --unpad-paren --pad-header --align-pointer=name
|
2012-05-29 15:55:35 +00:00 |
|
Philippe Teuwen
|
01303fab0d
|
astyle --formatted --mode=c --indent=spaces=2 --indent-switches --indent-preprocessor --keep-one-line-blocks --max-instatement-indent=60 --brackets=linux --pad-oper --unpad-paren --pad-header
|
2012-05-29 15:54:36 +00:00 |
|
Philippe Teuwen
|
562205cc14
|
astyle --formatted --mode=c --indent=spaces=2 --indent-switches --indent-preprocessor --keep-one-line-blocks --max-instatement-indent=60 --brackets=linux --pad-oper
|
2012-05-29 15:54:00 +00:00 |
|
Philippe Teuwen
|
a2cd236441
|
astyle --formatted --mode=c --indent=spaces=2 --indent-switches --indent-preprocessor --keep-one-line-blocks --max-instatement-indent=60
|
2012-05-29 15:52:51 +00:00 |
|
Romuald Conty
|
26865bbc19
|
Remove extra whitespaces/tabs before EOL.
find . -name '*.[ch]' | xargs perl -pi -e 's/\t+$//; s/ +$//'
Thanks to Ludovic.
|
2012-05-29 00:33:22 +00:00 |
|
Audrey Diacre
|
26245add73
|
Merge libnfc-1.5-new-api branch to trunk (r1168:1303).
|
2012-01-25 09:56:05 +00:00 |
|
Audrey Diacre
|
4c011279ff
|
add context to nfc_init(), nfc_exit(), nfc_open() and nfc_list_devices() functions.
|
2012-01-18 16:22:06 +00:00 |
|
Audrey Diacre
|
207199dc34
|
examples, test and utils use now nfc_exit() function.
|
2012-01-18 11:36:18 +00:00 |
|
Audrey Diacre
|
1d55b6f8c6
|
examples, test and utils use now nfc_init() function.
|
2012-01-18 11:09:01 +00:00 |
|
Audrey Diacre
|
324af418db
|
rename nfc_connect() function to nfc_open().
|
2012-01-17 15:21:56 +00:00 |
|
Audrey Diacre
|
9eb37b3eee
|
rename nfc_disconnect() function to nfc_close().
|
2012-01-17 14:52:39 +00:00 |
|
Audrey Diacre
|
84a864f8d3
|
test/test_device_modes_as_dep: increase duration of sleep() between nfc_idle() and nfc_target_init() to wait for the end of nfc_initiator_poll_dep_target().
|
2012-01-13 14:41:27 +00:00 |
|
Audrey Diacre
|
bd0de9bd61
|
test: rename test_dep to test_device_modes_as_dep and improve it.
|
2012-01-13 09:58:47 +00:00 |
|