]> git.ipfire.org Git - pakfire.git/commitdiff
tests: Drop all repo information from memory before read
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 9 May 2022 22:11:36 +0000 (22:11 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 9 May 2022 22:11:36 +0000 (22:11 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/libpakfire/repo.c

index 3db4eb839561d4028c64e932996fa4342289a493..c1d38d38936e9c5c4c6f500e50ffe6fcccaebe62 100644 (file)
@@ -53,6 +53,9 @@ static int test_scan(const struct test* t) {
        ASSERT_SUCCESS(pakfire_repo_write_solv(repo, f, 0));
        rewind(f);
 
+       // Flush all information in memory
+       pakfire_repo_clear(repo);
+
        // Read SOLV database again
        ASSERT_SUCCESS(pakfire_repo_read_solv(repo, f, 0));