[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libextractor] branch master updated: -fix dist issues
From: |
gnunet |
Subject: |
[libextractor] branch master updated: -fix dist issues |
Date: |
Sat, 02 Dec 2023 14:16:18 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository libextractor.
The following commit(s) were added to refs/heads/master by this push:
new 656cc92 -fix dist issues
656cc92 is described below
commit 656cc9254d13369fb4bca4fa69e3808bc6e0748e
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Sat Dec 2 22:16:08 2023 +0900
-fix dist issues
---
Makefile.am | 7 ++++++-
src/plugins/test_lib.c | 6 ++++++
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 47b37d7..371d514 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,5 +6,10 @@ EXTRA_DIST = config.rpath \
pkgconfigdatadir = $(libdir)/pkgconfig
pkgconfigdata_DATA = libextractor.pc
+DISTCLEANFILES = \
+ libextractor.pc \
+ libextractor.pc.in \
+ libextractor-uninstalled.sh \
+ libextractor-uninstalled.pc
-ACLOCAL_AMFLAGS = -I m4
+ACLOCAL_AMFLAGS = -I m4
diff --git a/src/plugins/test_lib.c b/src/plugins/test_lib.c
index 9816d82..6cd880d 100644
--- a/src/plugins/test_lib.c
+++ b/src/plugins/test_lib.c
@@ -27,6 +27,8 @@
#include <sys/types.h>
#include <regex.h>
#include <signal.h>
+#include <stdbool.h>
+#include <unistd.h>
/**
* Function that libextractor calls for each
@@ -143,6 +145,7 @@ run (const char *plugin_name,
unsigned int i;
unsigned int j;
int ret;
+ bool skipped = false;
pl = EXTRACTOR_plugin_add_config (NULL,
plugin_name,
@@ -155,6 +158,7 @@ run (const char *plugin_name,
fprintf (stderr,
"Failed to access %s, skipping test\n",
ps[i].filename);
+ skipped = true;
continue;
}
EXTRACTOR_extract (pl,
@@ -164,6 +168,8 @@ run (const char *plugin_name,
ps[i].solution);
}
EXTRACTOR_plugin_remove_all (pl);
+ if (skipped)
+ return 0;
ret = 0;
for (i = 0; NULL != ps[i].filename; i++)
for (j = 0; -1 != ps[i].solution[j].solved; j++)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libextractor] branch master updated: -fix dist issues,
gnunet <=