From ab5df0a8d89b69c7536e63b65ea919c0649e9e94 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 22 Nov 2010 21:49:50 -0300 Subject: [PATCH] qpkg/test/bug-adding: found another manifestation of the same problem This time, we even fail an assertion. Once again, it's because the state changes are out of sync with the "under consideration" stack. --- qpkg/test/bug-adding | 54 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/qpkg/test/bug-adding b/qpkg/test/bug-adding index 995003c..93e80d3 100755 --- a/qpkg/test/bug-adding +++ b/qpkg/test/bug-adding @@ -42,3 +42,57 @@ EOF expect < B, D +# B -> C_1 +# C_0 -> B +# D conflicts with C_1 +# +# "resolve" recurses as follows: +# +# A_0 -> B +# B_0|D -> C +# C_1|D -> next (we clear B here !) +# D_0 -> done +# C_0|D -> next (we try to clear B again) +# + +qpkg_fail "BUG: we don't restore QPKG_ADDING, missing errors" \ + prereq A <pkg->flags & QPKG_ADDING' failed. +Aborted +EOF