From bd19f38853dad5a89abada6ee5e7a23c65173894 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Thu, 23 May 2019 13:08:08 +0300 Subject: Revise dependency handling. Correctly display cyclic dependencies. * src/comp.c (component_log_dep): Remove. (report_cyclic_dependency): New function. (comp_array_remove): New function. (component_build_depmap): Remove erroneous components both from the component table and dependency map. (components_dump_depmap): Avoid trailing whitespace in the output. * src/depmap.c (depmap_clear_all): Remove. (depmap_remove): New function. * src/pies.h (CF_REMOVE): New flag. (depmap_clear_all): Remove prototype. (depmap_remove): New prototype. * tests/Makefile.am: Add new test. * tests/atlocal.in (trimws): New function. * tests/cyclic.at: New test. * tests/testsuite.at: Include new test. --- tests/atlocal.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/atlocal.in') diff --git a/tests/atlocal.in b/tests/atlocal.in index 2ba1462..9069bbd 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -1,6 +1,10 @@ # @configure_input@ -*- shell-script -*- # Configurable variable values for GNU Pies test suite. -# Copyright (C) 2016-2017 Sergey Poznyakoff +# Copyright (C) 2016-2019 Sergey Poznyakoff PATH=@abs_builddir@:@abs_top_builddir@/src:$srcdir:$PATH XFAILFILE=$abs_builddir/.badversion + +trimws() { + sed 's/[ ][ ]*$//' +} -- cgit v1.2.1