diff options
author | Brian C. Lane <bcl@redhat.com> | 2023-02-07 09:31:42 -0800 |
---|---|---|
committer | Brian C. Lane <bcl@redhat.com> | 2023-02-07 16:27:25 -0800 |
commit | 7b555132be63172a2d621afcdedfa7797185d3b5 (patch) | |
tree | 557fe0d41b2f601da2c471ada2082662dde5953a /libparted/tests/volser.c | |
parent | 9b009985da2e5eee5b5c179acfafab3aa1624f8b (diff) | |
download | parted-7b555132be63172a2d621afcdedfa7797185d3b5.tar.gz |
tests: Fixing libparted test framework usage
The fail and fail_if functions from libcheck are deprecated, replace
them with ck_abort_msg and ck_assert_msg. Note that the logic of assert
is the opposite of fail_if.
Diffstat (limited to 'libparted/tests/volser.c')
-rw-r--r-- | libparted/tests/volser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libparted/tests/volser.c b/libparted/tests/volser.c index c6efa5f..4b6e2d1 100644 --- a/libparted/tests/volser.c +++ b/libparted/tests/volser.c @@ -34,7 +34,7 @@ static void set_test (void) type = ped_disk_type_get ("dasd"); tmp_disk = _create_disk (20*1024*1024); - fail_if (tmp_disk == NULL, "Failed to create temporary disk"); + ck_assert_msg(tmp_disk != NULL, "Failed to create temporary disk"); dev = ped_device_get (tmp_disk); if (dev == NULL) return; |