diff mbox series

[2/2] libtracefs: Fix utest compilation

Message ID 20210621084914.336821-2-y.karadz@gmail.com (mailing list archive)
State Accepted
Commit a9e1ebcbcf2d3e79bd6655c73089e71b58a547bb
Headers show
Series [1/2] libtracefs: Fix typo in documentation | expand

Commit Message

Yordan Karadzhov June 21, 2021, 8:49 a.m. UTC
The typo in the name of the API was fixed in a previous patch,
but we need to update the unit tests accordingly.

Fixes: f415871 (libtracefs: Fix typo in function name)
Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
---
 utest/tracefs-utest.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/utest/tracefs-utest.c b/utest/tracefs-utest.c
index 9186656..a982b1d 100644
--- a/utest/tracefs-utest.c
+++ b/utest/tracefs-utest.c
@@ -729,7 +729,7 @@  static void test_instance_tracing_options(struct tracefs_instance *instance)
 	CU_TEST(!tracefs_option_is_supported(instance, TRACEFS_OPTION_INVALID));
 	CU_TEST(!tracefs_option_is_enabled(instance, TRACEFS_OPTION_INVALID));
 	CU_TEST(tracefs_option_enable(instance, TRACEFS_OPTION_INVALID) == -1);
-	CU_TEST(tracefs_option_diasble(instance, TRACEFS_OPTION_INVALID) == -1);
+	CU_TEST(tracefs_option_disable(instance, TRACEFS_OPTION_INVALID) == -1);
 	name = tracefs_option_name(TRACEFS_OPTION_INVALID);
 	CU_TEST(!strcmp(name, "unknown"));
 	/* Test all valid options */
@@ -751,7 +751,7 @@  static void test_instance_tracing_options(struct tracefs_instance *instance)
 			CU_TEST(check_option(instance, i, true, 1));
 			CU_TEST(tracefs_option_is_supported(instance, i));
 			CU_TEST(tracefs_option_is_enabled(instance, i));
-			CU_TEST(tracefs_option_diasble(instance, i) == 0);
+			CU_TEST(tracefs_option_disable(instance, i) == 0);
 			CU_TEST(check_option(instance, i, true, 0));
 			CU_TEST(tracefs_option_enable(instance, i) == 0);
 			CU_TEST(check_option(instance, i, true, 1));
@@ -761,7 +761,7 @@  static void test_instance_tracing_options(struct tracefs_instance *instance)
 			CU_TEST(!tracefs_option_is_enabled(instance, i));
 			CU_TEST(tracefs_option_enable(instance, i) == 0);
 			CU_TEST(check_option(instance, i, true, 1));
-			CU_TEST(tracefs_option_diasble(instance, i) == 0);
+			CU_TEST(tracefs_option_disable(instance, i) == 0);
 			CU_TEST(check_option(instance, i, true, 0));
 		}
 	}