From f1242718eaa1dbc94484e0e7b3bb4583daf3f574 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Fri, 12 Aug 2022 21:23:49 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Adjust=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit adjust to handle new behaviour --- tests/unit-initcpio.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/unit-initcpio.cpp b/tests/unit-initcpio.cpp index af12389..17d4ca6 100644 --- a/tests/unit-initcpio.cpp +++ b/tests/unit-initcpio.cpp @@ -64,9 +64,10 @@ int main() { assert(initcpio.write()); // Checking insertion of equal items - initcpio.append_module("radeon"); - initcpio.append_hook("btrfs"); - initcpio.append_module("crc32c-intel"); + assert(!initcpio.append_module("radeon")); + assert(!initcpio.append_hook("btrfs")); + assert(!initcpio.append_module("crc32c-intel")); + assert(!initcpio.insert_hook("btrfs", {"usr", "lvm2", "zfs"})); // Write data. assert(initcpio.write());