]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Fix and make fast-vapi test actually fatal 8cd5a579a8a4a6b55c30cdd58387a61ec4b70917
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 19 Nov 2019 08:34:50 +0000 (09:34 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 19 Nov 2019 08:49:36 +0000 (09:49 +0100)
codegen/valaccodebasemodule.vala
tests/fastvapi/Makefile.am

index 5c8a097c2be53e519ff3df0a9be2aadb4be745c6..9e836b1d7ba13d35dd4d0ef88b2936a947ce5bb7 100644 (file)
@@ -971,7 +971,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
                        return;
                }
 
-               if (!c.external || (c.source_type == SourceFileType.FAST && c.value != null)) {
+               if (!c.external && c.value != null) {
                        generate_type_declaration (c.type_reference, decl_space);
 
                        c.value.emit (this);
index cc002565434853732f1bd90d528915325cd6fead..86614655c36548178acd11e7990907d9369bd54b 100644 (file)
@@ -4,6 +4,7 @@ check-fastvapi: $(top_builddir)/compiler/valac
        G_DEBUG=fatal-warnings $(top_builddir)/compiler/valac \
                -C \
                --disable-version-header \
+               --vapidir $(top_srcdir)/vapi \
                --fast-vapi fastvapitest.vapi \
                --basedir $(srcdir) \
                $(srcdir)/fastvapitest.vala; \
@@ -11,9 +12,10 @@ check-fastvapi: $(top_builddir)/compiler/valac
        G_DEBUG=fatal-warnings $(top_builddir)/compiler/valac \
                -C \
                --disable-version-header \
+               --vapidir $(top_srcdir)/vapi \
                --use-fast-vapi fastvapitest.vapi \
                --basedir $(srcdir) \
-               $(srcdir)/usefastvapitest.vala; \
+               $(srcdir)/usefastvapitest.vala || exit 1; \
        rm -f fastvapitest.vapi fastvapitest.c usefastvapitest.c
 
 check: check-fastvapi