🔧 Adjust tests

adjust to handle new behaviour
This commit is contained in:
Vladislav Nepogodin 2022-08-12 21:23:49 +04:00
parent cd83ab41fc
commit f1242718ea
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9

View File

@ -64,9 +64,10 @@ int main() {
assert(initcpio.write()); assert(initcpio.write());
// Checking insertion of equal items // Checking insertion of equal items
initcpio.append_module("radeon"); assert(!initcpio.append_module("radeon"));
initcpio.append_hook("btrfs"); assert(!initcpio.append_hook("btrfs"));
initcpio.append_module("crc32c-intel"); assert(!initcpio.append_module("crc32c-intel"));
assert(!initcpio.insert_hook("btrfs", {"usr", "lvm2", "zfs"}));
// Write data. // Write data.
assert(initcpio.write()); assert(initcpio.write());