test: fix tests by setting sane active_layers without state

finally fixes #10821
cute-signatures
Timo Teräs 2022-03-07 10:15:06 +02:00
parent 1be55db3d0
commit fa913aba4b
1 changed files with 1 additions and 0 deletions

View File

@ -471,6 +471,7 @@ int main(int argc, char **argv)
ctx.open_flags |= APK_OPENF_READ | APK_OPENF_NO_STATE | APK_OPENF_NO_REPOS; ctx.open_flags |= APK_OPENF_READ | APK_OPENF_NO_STATE | APK_OPENF_NO_REPOS;
ctx.flags |= APK_SIMULATE; ctx.flags |= APK_SIMULATE;
ctx.flags &= ~APK_INTERACTIVE; ctx.flags &= ~APK_INTERACTIVE;
db.active_layers = BIT(0);
#endif #endif
r = apk_ctx_prepare(&ctx); r = apk_ctx_prepare(&ctx);