Date:2010-11-23 01:49:50 (8 years 8 months ago)
Author:Werner Almesberger
Commit:ab5df0a8d89b69c7536e63b65ea919c0649e9e94
Message: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.
Files: qpkg/test/bug-adding (1 diff)

Change Details

qpkg/test/bug-adding
4242expect <<EOF
4343package C version 0 has cyclic dependency
4444EOF
45
46###############################################################################
47
48#
49# We also fail (badly) to restore QPKG_ADDING after we moved on:
50#
51# A -> B, D
52# B -> C_1
53# C_0 -> B
54# D conflicts with C_1
55#
56# "resolve" recurses as follows:
57#
58# A_0 -> B
59# B_0|D -> C
60# C_1|D -> next (we clear B here !)
61# D_0 -> done
62# C_0|D -> next (we try to clear B again)
63#
64
65qpkg_fail "BUG: we don't restore QPKG_ADDING, missing errors" \
66  prereq A <<EOF
67Package: D
68Version: 0
69Architecture: test
70Filename: D
71
72Package: C
73Version: 1
74Architecture: test
75Filename: C_1
76
77Package: C
78Version: 0
79Architecture: test
80Depends: B
81Filename: C_0
82
83Package: B
84Version: 0
85Architecture: test
86Depends: C
87Filename: B
88
89Package: A
90Version: 0
91Architecture: test
92Depends: B, D
93Filename: A
94EOF
95expect <<EOF
96qpkg: prereq.c:185: resolve: Assertion \`top->pkg->flags & QPKG_ADDING' failed.
97Aborted
98EOF

Archive Download the corresponding diff file

Branches:
master



interactive