From 7b555132be63172a2d621afcdedfa7797185d3b5 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 7 Feb 2023 09:31:42 -0800 Subject: 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. --- libparted/tests/zerolen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libparted/tests/zerolen.c') diff --git a/libparted/tests/zerolen.c b/libparted/tests/zerolen.c index cf2bd1c..2d9b424 100644 --- a/libparted/tests/zerolen.c +++ b/libparted/tests/zerolen.c @@ -28,7 +28,7 @@ main (int argc, char **argv) TCase* tcase_probe = tcase_create ("Probe"); if (argc < 2) { - fail ("Insufficient arguments"); + ck_abort_msg("Insufficient arguments"); return EXIT_FAILURE; } temporary_disk = argv[1]; -- cgit v1.2.1