Files
libite/test/Makefile.am
T
omrzk 0013f4fcf4 Report write errors from writesf(), writellf(), and writedf()
The write functions return success when nothing was written, e.g., on
a stream that is not open for writing:

    writesf("data", "r", "/tmp/file");

They return the result of fclose() and drop the one from fprintf().

Return -1 when fprintf() fails, with errno from the failed write.

Closes #25
2026-11-16 14:13:07 +01:00

47 lines
1.4 KiB
Makefile

# Ignore warnings about unused result, in e.g. write()
AM_CFLAGS = -W -Wall -Wextra -Wno-unused-result
AM_CPPFLAGS = -D_GNU_SOURCE
AM_LDFLAGS = -L../src/ ../src/libite.la -static
EXTRA_DIST = check.h data/fexist/dir/.placeholder data/fexist/executable
EXTRA_DIST += data/fexist/link data/fexist/regular data/lfile/fstab
EXTRA_DIST += data/lfile/group data/lfile/passwd data/lfile/protocols
EXTRA_DIST += data/lfile/services data/which/executable
EXTRA_DIST += data/which/executable-link data/which/regular
CLEANFILES = *~ *.trs *.log
TESTS_ENVIRONMENT = ([ -d data ] || ln -sf $(srcdir)/data) &&
clean-local:
-find -type l -name data -exec rm {} \;
TESTS =
TESTS += chomp
TESTS += copyfile
TESTS += fcopyfile
TESTS += copyfile-symlink
TESTS += dir
TESTS += fexist
TESTS += fisdir
TESTS += fopenf
TESTS += fsendfile
TESTS += lfile
TESTS += makepath
TESTS += pidfile
TESTS += printhdr
TESTS += procval
TESTS += progress
TESTS += rsync
TESTS += runbg
TESTS += str
TESTS += strmatch
TESTS += systemf
TESTS += touch
TESTS += tempfile
TESTS += which
TESTS += yorn
check_PROGRAMS = $(TESTS)
copyfile_symlink_SOURCES = copyfile-symlink.c