chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a new function to compute the leftmost bit of a uint32_t
[disorder]
/
lib
/
test.c
diff --git
a/lib/test.c
b/lib/test.c
index c205a5733a18e172ff4576f4e6ac15fda508dd55..30af3a53d0684328bf3656fd21655c0d58ab30ca 100644
(file)
--- a/
lib/test.c
+++ b/
lib/test.c
@@
-21,7
+21,7
@@
#include "test.h"
#include "test.h"
-
int
tests, errors;
+
long long
tests, errors;
int fail_first;
void count_error(void) {
int fail_first;
void count_error(void) {
@@
-158,7
+158,8
@@
int main(void) {
test_hash();
test_url();
test_regsub();
test_hash();
test_url();
test_regsub();
- fprintf(stderr, "%d errors out of %d tests\n", errors, tests);
+ test_bits();
+ fprintf(stderr, "%lld errors out of %lld tests\n", errors, tests);
return !!errors;
}
return !!errors;
}