chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/ tests now use Automake's test infrastructure, and are split into
[disorder]
/
lib
/
t-sink.c
diff --git
a/lib/t-sink.c
b/lib/t-sink.c
index ad7b23c890d5dffb3ab3bcdf618676afc7f2f547..68816b3318d4f342b7a3b001ec20caa3f961d768 100644
(file)
--- a/
lib/t-sink.c
+++ b/
lib/t-sink.c
@@
-19,13
+19,11
@@
*/
#include "test.h"
*/
#include "test.h"
-void test_sink(void) {
+
static
void test_sink(void) {
struct sink *s;
struct dynstr d[1];
FILE *fp;
char *l;
struct sink *s;
struct dynstr d[1];
FILE *fp;
char *l;
-
- fprintf(stderr, "test_sink\n");
fp = tmpfile();
assert(fp != 0);
fp = tmpfile();
assert(fp != 0);
@@
-58,6
+56,8
@@
void test_sink(void) {
check_string(d->vec, "test: 999\nwibble: foobar\n");
}
check_string(d->vec, "test: 999\nwibble: foobar\n");
}
+TEST(sink);
+
/*
Local Variables:
c-basic-offset:2
/*
Local Variables:
c-basic-offset:2