File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ test_typetraits_LDADD = \
132
132
test_xaprintf_SOURCES = \
133
133
../../lib/string/sprintf/aprintf.c \
134
134
../../lib/string/sprintf/xaprintf.c \
135
+ ../../lib/string/strcmp/streq.c \
135
136
test_xaprintf.c \
136
137
$(NULL )
137
138
test_xaprintf_CFLAGS = \
Original file line number Diff line number Diff line change 2
2
// SPDX-License-Identifier: BSD-3-Clause
3
3
4
4
5
+ #include "string/sprintf/xaprintf.h"
6
+
5
7
#include <setjmp.h>
6
8
#include <stdarg.h>
7
9
#include <stddef.h>
14
16
#include <stdint.h> // Required by <cmocka.h>
15
17
#include <cmocka.h>
16
18
17
- #include "string/sprintf/xaprintf .h"
19
+ #include "string/strcmp/streq .h"
18
20
19
21
20
22
#define smock () _Generic(mock(), uintmax_t: (intmax_t) mock())
@@ -76,15 +78,15 @@ test_xaprintf_exit(void **state)
76
78
assert_unreachable ();
77
79
break ;
78
80
case EXIT_CALLED :
79
- assert_true (strcmp (p , "xaprintf_called" ));
81
+ assert_true (streq (p , "xaprintf_called" ));
80
82
p = "test_ok" ;
81
83
break ;
82
84
default :
83
85
assert_unreachable ();
84
86
break ;
85
87
}
86
88
87
- assert_true (strcmp (p , "test_ok" ));
89
+ assert_true (streq (p , "test_ok" ));
88
90
}
89
91
90
92
You can’t perform that action at this time.
0 commit comments