From d3c470902c1ca8846c573a15d006337224584d82 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Jun 26 2020 20:03:28 +0000 Subject: Change linkage for cm_submit_u_from_file test in fromfile.c I tried some crazy linkage but it was segfaulting for no apparent reason. Including the file directly fixes it and still tests that \n is appended to read files and that is sufficient. --- diff --git a/tests/tools/Makefile.am b/tests/tools/Makefile.am index 4a5ddcb..53f658e 100644 --- a/tests/tools/Makefile.am +++ b/tests/tools/Makefile.am @@ -41,4 +41,4 @@ srv_LDADD = $(top_srcdir)/src/srvloc.c $(LDADD) fromfile_CFLAGS = $(AM_CFLAGS) fromfile_SOURCES = fromfile.c -fromfile_LDADD = $(top_srcdir)/src/submit-u.c $(LDADD) $(UUID_LIBS) +fromfile_LDADD = $(LDADD) $(UUID_LIBS) diff --git a/tests/tools/fromfile.c b/tests/tools/fromfile.c index af0b86f..bb70507 100644 --- a/tests/tools/fromfile.c +++ b/tests/tools/fromfile.c @@ -16,13 +16,17 @@ */ #include "../../src/config.h" -#include "../../src/submit-h.h" #include #include #include #include +#include + +#include "../../src/submit-u.h" +#include "../../src/submit-u.c" + int main(int argc, char **argv) {