Commit graph

7 commits

Author SHA1 Message Date
hjelmn@cs.unm.edu
1eff220474 Misc: Revert all references to libusb/libusb.info 2014-01-08 23:51:01 +00:00
Ludovic Rousseau
c4f2c353b9 tests: set output_file to a valid value
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".
2013-09-28 12:19:16 +02:00
Pete Batard
5ab16a2165 Tests: Suppress Visual Studio 2012 Code Analysis warnings 2013-03-16 23:40:30 +00:00
Xiaofan Chen
c56f890684 Tests: Fix broken OS-X and Linux builds
* _dup2 is Windows only. Use dup2 instead
* Breakage was introduced in 76eecc6ce1
2013-02-24 23:03:32 +00:00
Pete Batard
76eecc6ce1 Tests: Simplify stdout redirection and fix Windows assertion error on cleanup
* 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
2013-02-22 00:49:29 +00:00
Toby Gray
244271931a WinCE: Add support for WinCE (sources) 2013-01-23 00:40:18 +00:00
Toby Gray
21cf6e4748 Tests: Add libusbx stress test
See https://github.com/tobygray/libusbx/tree/testing as well
as http://libusbx.1081486.n5.nabble.com/Libusbx-devel-Crashes-tt433.html#a438
2012-11-25 01:32:59 +00:00