projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common: cast arguments to character classification functions to unsigned char
[babeltrace.git]
/
tests
/
utils
/
tap
/
tap.c
diff --git
a/tests/utils/tap/tap.c
b/tests/utils/tap/tap.c
index 4d09a58a5e8c2e39835d14dba24a83d249da7ed5..8e9f9a645fc38c2ec09a972b1b8d45fbcccb891c 100644
(file)
--- a/
tests/utils/tap/tap.c
+++ b/
tests/utils/tap/tap.c
@@
-29,9
+29,9
@@
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
-#include <assert.h>
#include <string.h>
#include <limits.h>
#include <string.h>
#include <limits.h>
+#include <assert.h>
#include "tap.h"
#include "tap.h"
@@
-42,7
+42,7
@@
static unsigned int test_count = 0; /* Number of tests that have been run */
static unsigned int e_tests = 0; /* Expected number of tests to run */
static unsigned int failures = 0; /* Number of tests that failed */
static char *todo_msg = NULL;
static unsigned int e_tests = 0; /* Expected number of tests to run */
static unsigned int failures = 0; /* Number of tests that failed */
static char *todo_msg = NULL;
-static char *todo_msg_fixed = "libtap malloc issue";
+static c
onst c
har *todo_msg_fixed = "libtap malloc issue";
static int todo = 0;
static int test_died = 0;
static int todo = 0;
static int test_died = 0;
@@
-82,8
+82,8
@@
void funlockfile(FILE * filehandle) {
* test_comment -- a comment to print afterwards, may be NULL
*/
unsigned int
* test_comment -- a comment to print afterwards, may be NULL
*/
unsigned int
-_gen_result(int ok, const char *func, char *file, unsigned int line,
- char *test_name, ...)
+_gen_result(int ok, const char *func, c
onst c
har *file, unsigned int line,
+ c
onst c
har *test_name, ...)
{
va_list ap;
char *local_test_name = NULL;
{
va_list ap;
char *local_test_name = NULL;
@@
-109,7
+109,7
@@
_gen_result(int ok, const char *func, char *file, unsigned int line,
if(local_test_name) {
name_is_digits = 1;
for(c = local_test_name; *c != '\0'; c++) {
if(local_test_name) {
name_is_digits = 1;
for(c = local_test_name; *c != '\0'; c++) {
- if(!isdigit(
*c) && !isspace(
*c)) {
+ if(!isdigit(
(unsigned char) *c) && !isspace((unsigned char)
*c)) {
name_is_digits = 0;
break;
}
name_is_digits = 0;
break;
}
@@
-228,7
+228,7
@@
plan_no_plan(void)
* Note that the plan is to skip all tests
*/
int
* Note that the plan is to skip all tests
*/
int
-plan_skip_all(char *reason)
+plan_skip_all(c
onst c
har *reason)
{
LOCK;
{
LOCK;
@@
-284,7
+284,7
@@
plan_tests(unsigned int tests)
}
unsigned int
}
unsigned int
-diag(char *fmt, ...)
+diag(c
onst c
har *fmt, ...)
{
va_list ap;
{
va_list ap;
@@
-330,7
+330,7
@@
_expected_tests(unsigned int tests)
}
int
}
int
-skip(unsigned int n, char *fmt, ...)
+skip(unsigned int n, c
onst c
har *fmt, ...)
{
va_list ap;
char *skip_msg = NULL;
{
va_list ap;
char *skip_msg = NULL;
@@
-358,7
+358,7
@@
skip(unsigned int n, char *fmt, ...)
}
void
}
void
-todo_start(char *fmt, ...)
+todo_start(c
onst c
har *fmt, ...)
{
va_list ap;
{
va_list ap;
This page took
0.04193 seconds
and
4
git commands to generate.