[glib] glib-tap: Add missing mkdir for .test generation rule
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] glib-tap: Add missing mkdir for .test generation rule
- Date: Fri, 24 Nov 2017 13:11:08 +0000 (UTC)
commit b97e5cb21bf97bcdd8c393f032c6eef453f4f410
Author: Philip Withnall <withnall endlessm com>
Date: Fri Nov 24 12:24:31 2017 +0000
glib-tap: Add missing mkdir for .test generation rule
We can’t guarantee that the builddir we’re generating in actually exists
— if doing a clean build with builddir ≠ srcdir, and there are no other
rules which generate build products in builddir, the .test generation
rule can fail. This happens for flatpak-builder.git for me.
Try to avoid that by explicitly creating the builddir.
Signed-off-by: Philip Withnall <withnall endlessm com>
https://bugzilla.gnome.org/show_bug.cgi?id=790785
glib-tap.mk | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/glib-tap.mk b/glib-tap.mk
index 5f25b62..e73438d 100644
--- a/glib-tap.mk
+++ b/glib-tap.mk
@@ -125,7 +125,8 @@ installed_testcases = $(test_programs) $(installed_test_programs) \
installed_test_meta_DATA = $(installed_testcases:=.test)
%.test: %$(EXEEXT) Makefile
- $(AM_V_GEN) (echo '[Test]' > $@.tmp; \
+ $(AM_V_GEN) ($(MKDIR_P) $(@D); \
+ echo '[Test]' > $@.tmp; \
echo 'Type=session' >> $@.tmp; \
echo 'Exec=$(installed_testdir)/$(notdir $<) --tap' >> $@.tmp; \
echo 'Output=TAP' >> $@.tmp; \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]