1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-18 15:24:36 -04:00

[mailcap] Fixed tests

This commit is contained in:
Witold Filipczyk 2022-06-05 15:29:04 +02:00
parent 0db5bb7764
commit 3d1280fd2a
3 changed files with 9 additions and 9 deletions

View File

@ -7,11 +7,9 @@ OBJS-$(CONFIG_MIMETYPES) += mimetypes.o
OBJS = common.o default.o
#TEST_PROGS = \
# mailcap-cache$(EXEEXT)
TEST_PROGS = \
mailcap-cache$(EXEEXT)
# The dependencies are a bit funny here! I don't know why. Just remember to
# make clean before making the test. --jonas
mailcap-cache.o: $(top_srcdir)/src/mime/backend/mailcap.c
$(call cmd,compile,-DTEST_MAILCAP)

View File

@ -785,6 +785,8 @@ struct module mailcap_mime_module = struct_module(
#include "util/test.h"
char *get_ui_clipboard_file(void) { return NULL; }
/* Some ugly shortcuts for getting defined symbols to work. */
int default_mime_backend,
install_signal_handler,

View File

@ -44,15 +44,15 @@ mailcap-cache \
cat > expected <<EOF
type: text/html
block: 1
program: elinks --force-html %
program: elinks --force-html %f
type: text/x-csh
block: 1
program: view %
program: view %f
type: application/postscript
block: 1
program: ps2ascii %
program: ps2ascii %f
type: application/foo
EOF
@ -81,11 +81,11 @@ mailcap-cache \
cat > expected <<EOF
type: image/jpeg
block: 0
program: xzgv %
program: xzgv %f
type: application/postscript
block: 0
program: gv %
program: gv %f
EOF
test_expect_success \