mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
Fixes to make test target to work
This commit is contained in:
parent
685cd47c2e
commit
dfd399c370
@ -11,7 +11,7 @@ TEST_PROGS = \
|
|||||||
|
|
||||||
# The dependencies are a bit funny here! I don't know why. Just remember to
|
# The dependencies are a bit funny here! I don't know why. Just remember to
|
||||||
# make clean before making the test. --jonas
|
# make clean before making the test. --jonas
|
||||||
mailcap-cache.o: mailcap.c
|
mailcap-cache.o: $(top_srcdir)/src/mime/backend/mailcap.c
|
||||||
$(call cmd,compile,-DTEST_MAILCAP)
|
$(call cmd,compile,-DTEST_MAILCAP)
|
||||||
|
|
||||||
TESTDEPS = \
|
TESTDEPS = \
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
#include "bfu/msgbox.h"
|
#include "bfu/msgbox.h"
|
||||||
#include "main/module.h"
|
#include "main/module.h"
|
||||||
|
#include "protocol/file/mailcap.h"
|
||||||
#include "protocol/user.h"
|
#include "protocol/user.h"
|
||||||
#include "session/session.h"
|
#include "session/session.h"
|
||||||
#include "util/test.h"
|
#include "util/test.h"
|
||||||
@ -61,6 +62,7 @@ stub_called(const unsigned char *fun)
|
|||||||
protocol_external_handler_T name /* consume semicolon */
|
protocol_external_handler_T name /* consume semicolon */
|
||||||
STUB_PROTOCOL_HANDLER(about_protocol_handler);
|
STUB_PROTOCOL_HANDLER(about_protocol_handler);
|
||||||
STUB_PROTOCOL_HANDLER(bittorrent_protocol_handler);
|
STUB_PROTOCOL_HANDLER(bittorrent_protocol_handler);
|
||||||
|
STUB_PROTOCOL_HANDLER(bittorrent_peer_protocol_handler);
|
||||||
STUB_PROTOCOL_HANDLER(data_protocol_handler);
|
STUB_PROTOCOL_HANDLER(data_protocol_handler);
|
||||||
STUB_PROTOCOL_EXTERNAL_HANDLER(ecmascript_protocol_handler);
|
STUB_PROTOCOL_EXTERNAL_HANDLER(ecmascript_protocol_handler);
|
||||||
STUB_PROTOCOL_HANDLER(file_protocol_handler);
|
STUB_PROTOCOL_HANDLER(file_protocol_handler);
|
||||||
@ -111,3 +113,10 @@ msg_box(struct terminal *term, struct memory_list *mem_list,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* declared in "protocol/file/mailcap.h" */
|
||||||
|
void
|
||||||
|
execute_mailcap(struct connection *conn)
|
||||||
|
{
|
||||||
|
stub_called("execute_mailcap");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "elinks.h"
|
#include "elinks.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user