diff options
author | Michael Schroeder <mls@suse.de> | 2012-02-29 15:24:00 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2012-02-29 15:24:00 +0100 |
commit | 30160d6d8ad9bafc05aaf574e8ac92b98094f182 (patch) | |
tree | 41b9572a243a7015d50c0ea2d759f4a90ca52e95 | |
parent | 55c277769ae07500c2035b20fd8a0dbd568c4ed7 (diff) | |
download | libsolv-30160d6d8ad9bafc05aaf574e8ac92b98094f182.tar.gz libsolv-30160d6d8ad9bafc05aaf574e8ac92b98094f182.tar.bz2 libsolv-30160d6d8ad9bafc05aaf574e8ac92b98094f182.zip |
support RESULT_UNNEEDED in testcases
-rw-r--r-- | ext/testcase.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/testcase.c b/ext/testcase.c index fda56f1..8bb132f 100644 --- a/ext/testcase.c +++ b/ext/testcase.c @@ -1398,6 +1398,20 @@ testcase_solverresult(Solver *solv, int resultflags) queue_free(&qs); } + if ((resultflags & TESTCASE_RESULT_UNNEEDED) != 0) + { + Queue q; + + queue_init(&q); + solver_get_unneeded(solv, &q, 0); + for (i = 0; i < q.count; i++) + { + s = pool_tmpjoin(pool, "unneeded ", testcase_solvid2str(pool, q.elements[i]), 0); + strqueue_push(&sq, s); + } + queue_free(&q); + } + strqueue_sort(&sq); result = strqueue_join(&sq); strqueue_free(&sq); |