summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* core: Introduce libusb_set_option() API functionChris Dickens2017-07-161-2/+2
| | | | | | | | | | | | | | This new function allows more flexibility in extending the library to support more user-configurable options. It is intended to provide a single API that can support a wide variety of needs and eliminates the need for new API functions to set future options. The function is introduced with a single option (LIBUSB_OPTION_LOG_LEVEL) that replaces the libusb_set_debug() function. Documentation relating to libusb_set_debug() and the uses of this function in the examples and tests have been updated accordingly. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
* Misc: Revert all references to libusb/libusb.infohjelmn@cs.unm.edu2014-01-084-52/+52
|
* tests: set output_file to a valid valueLudovic Rousseau2013-09-281-0/+1
| | | | | | | | | | | If fdopen(3) fails then ctx->output_file is NULL and should not be used in cleanup_test_output() called next. Problem detected by the Coverity tool CID 1042543 (#1 of 1): Dereference after null check (FORWARD_NULL)9. var_deref_model: Passing "ctx" to function "cleanup_test_output(libusbx_testlib_ctx *)", which dereferences null "ctx->output_file".
* Android: Add examples and stress testsToby Gray2013-08-111-0/+1
|
* libusbx 1.0.15-rc1v1.0.15-rc1Pete Batard2013-04-021-1/+1
| | | | * Also fix missing header in release tarball
* Tests: Suppress Visual Studio 2012 Code Analysis warningsPete Batard2013-03-161-2/+3
|
* Misc: Simplify includes and misc. cleanupPete Batard2013-02-271-4/+0
| | | | | | | | | | | * fxload sample provenance * No need for <sys/types.h> in samples as already in libusb.h * Don't bother about sscanf_s in xusb * Use HAVE_### and rely on config.h where possible * Formal inclusion of <winsock.h> in libusb.h for WinCE and WDK * Cleanup of Windows' config.h * Avoid ENAMETOOLONG and ENOTEMPTY conflict between errno.h and winsock.h for WinCE * Additional newlines & braces cleanup
* Tests: Fix broken OS-X and Linux buildsXiaofan Chen2013-02-241-2/+2
| | | | | * _dup2 is Windows only. Use dup2 instead * Breakage was introduced in 76eecc6ce11d1bedee369859899901037dcd4cc2
* Tests: Simplify stdout redirection and fix Windows assertion error on cleanupPete Batard2013-02-222-35/+44
| | | | | | * cleanup_test_output() produced an assertion error when compiled with MSVC due to closing ctx->output_file * set ctx->output_file to stdout by default
* WinCE: Add support for WinCE (sources)Toby Gray2013-01-232-2/+18
|
* Tests: Add libusbx stress testToby Gray2012-11-254-0/+526
See https://github.com/tobygray/libusbx/tree/testing as well as http://libusbx.1081486.n5.nabble.com/Libusbx-devel-Crashes-tt433.html#a438