From 8d453d77c2149373a21ca1440dc6bd364fc74934 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 22 Nov 2010 09:28:34 -0300 Subject: [PATCH] qpkg: test for the QPKG_ADDING leakage bug - test/bug-adding: test if we get a false cyclic dependency because QPKG_ADDING isn't properly removed - TODO: mention the problem --- qpkg/TODO | 2 ++ qpkg/test/bug-adding | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100755 qpkg/test/bug-adding diff --git a/qpkg/TODO b/qpkg/TODO index f3cf69f..a6c1c99 100644 --- a/qpkg/TODO +++ b/qpkg/TODO @@ -21,6 +21,8 @@ Still left to do Update: added detection of cyclic dependencies (in progress) + Update: added test for QPKG_ADDING cleanup bug + - implement keyword search - consider also supporting the similar but not identical (parent ?) format diff --git a/qpkg/test/bug-adding b/qpkg/test/bug-adding new file mode 100755 index 0000000..995003c --- /dev/null +++ b/qpkg/test/bug-adding @@ -0,0 +1,44 @@ +#!/bin/sh +. ./Common + +############################################################################### + +# +# See the comment at the end of "resolve" in prereq.c for details. +# + +qpkg_fail "BUG: we don't clean up QPKG_ADDING, yielding false errors" \ + prereq A <