1 // SPDX-License-Identifier: GPL-2.0+
3 * Simple unit test library
5 * Copyright (c) 2013 Google, Inc
12 DECLARE_GLOBAL_DATA_PTR
;
14 void ut_fail(struct unit_test_state
*uts
, const char *fname
, int line
,
15 const char *func
, const char *cond
)
17 gd
->flags
&= ~(GD_FLG_SILENT
| GD_FLG_RECORD
);
18 printf("%s:%d, %s(): %s\n", fname
, line
, func
, cond
);
22 void ut_failf(struct unit_test_state
*uts
, const char *fname
, int line
,
23 const char *func
, const char *cond
, const char *fmt
, ...)
27 gd
->flags
&= ~(GD_FLG_SILENT
| GD_FLG_RECORD
);
28 printf("%s:%d, %s(): %s: ", fname
, line
, func
, cond
);