libqb/tests
Jim Meyering 2ada241eee tests/rbwriter: don't ignore write failure
Here's another fix.
In adjusting the printf, I added a cast and switched to %5ld.
I would have preferred to use %5jd as the printf format (i.e., then no
cast is needed), but saw no other uses of the "j" directive, so perhaps
you do not yet depend on printf with such support.

From 6d5d3af35d1f6851537f7af8996d1106c1ebe435 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@redhat.com>
Date: Wed, 18 Jul 2012 17:54:38 +0200
Subject: [PATCH] tests/rbwriter: don't ignore write failure

Spotted by coverity:
This less-than-zero comparison of an unsigned value is never true.
"res < 0U".
http://libqb.org/html/0.14.1/coverity/1/7rbwriter.c.html#error

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-07-19 08:19:22 +10:00
..
.gitignore TEST: change the script to .sh and generated c file to auto_ 2012-01-16 22:18:39 +11:00
bench-log.c By default don't build in the slow benchlog 2011-11-25 11:12:27 +11:00
bmc.c Deprecate qb_util_set_log_function() 2012-01-24 16:00:05 +11:00
bmcpt.c Fix some sparc test failures. 2011-12-22 13:56:20 +11:00
bms.c Remove message queues 2012-05-28 13:41:04 +10:00
check_array.c Fix some issues found by clang 2012-02-03 14:37:37 +11:00
check_ipc.c TESTS: fix warning about unused functions 2012-06-06 15:50:19 +10:00
check_log.c LOG: fix threaded logging. 2012-06-14 11:01:52 +10:00
check_loop.c TEST: add a test to check the order of the jobs 2012-03-09 19:33:35 +11:00
check_map.c use random() not rand() 2012-02-08 22:00:49 +11:00
check_rb.c rb: cleanup the semaphores 2012-05-10 10:39:43 +10:00
check_util.c Add a split timer to the stopwatch. 2012-02-01 13:46:27 +11:00
loop.c Deprecate qb_util_set_log_function() 2012-01-24 16:00:05 +11:00
make-log-test.sh TEST: change the script to .sh and generated c file to auto_ 2012-01-16 22:18:39 +11:00
Makefile.am TESTS: move the util tests into "slow-tests" (i.e. optional) 2012-03-07 16:35:11 +11:00
rbreader.c TEST: make rbreader/writer more like the other benchmarking apps 2012-05-21 08:30:22 +10:00
rbwriter.c tests/rbwriter: don't ignore write failure 2012-07-19 08:19:22 +10:00
resources.test TEST: Use /bin/sh not /bin/bash 2012-05-10 11:41:11 +10:00