From c6ab7f724167b5530314e2607312aa3d056f8b9d Mon Sep 17 00:00:00 2001 From: Holly Nichols Date: Thu, 21 Mar 2024 19:05:29 -0400 Subject: [PATCH] test/cfgfile: fix typo in error messages [ upstream commit fbca1ad85f7725b876d032cb732b3332d247e1f4 ] Caught by codespell. Fixes: c54e7234bc9e ("test/cfgfile: add basic unit tests") Signed-off-by: Holly Nichols Signed-off-by: Vinh Tran Signed-off-by: Thomas Monjalon --- .mailmap | 2 ++ app/test/test_cfgfile.c | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.mailmap b/.mailmap index 3851a80bbf..055e44f239 100644 --- a/.mailmap +++ b/.mailmap @@ -505,6 +505,7 @@ Hiral Shah Hiroki Shirokura Hiroshi Shimamoto Hiroyuki Mikita +Holly Nichols Hongbo Zheng Hongjun Ni Hongzhi Guo @@ -1439,6 +1440,7 @@ Vincent Guo Vincent Jardin Vincent Li Vincent S. Cojot +Vinh Tran Vipin Varghese Vipul Ashri Visa Hankala diff --git a/app/test/test_cfgfile.c b/app/test/test_cfgfile.c index 2f596affee..a5e3d8699c 100644 --- a/app/test/test_cfgfile.c +++ b/app/test/test_cfgfile.c @@ -168,7 +168,7 @@ test_cfgfile_invalid_section_header(void) struct rte_cfgfile *cfgfile; cfgfile = rte_cfgfile_load(CFG_FILES_ETC "/invalid_section.ini", 0); - TEST_ASSERT_NULL(cfgfile, "Expected failured did not occur"); + TEST_ASSERT_NULL(cfgfile, "Expected failure did not occur"); return 0; } @@ -185,7 +185,7 @@ test_cfgfile_invalid_comment(void) cfgfile = rte_cfgfile_load_with_params(CFG_FILES_ETC "/sample2.ini", 0, ¶ms); - TEST_ASSERT_NULL(cfgfile, "Expected failured did not occur"); + TEST_ASSERT_NULL(cfgfile, "Expected failure did not occur"); return 0; } @@ -196,7 +196,7 @@ test_cfgfile_invalid_key_value_pair(void) struct rte_cfgfile *cfgfile; cfgfile = rte_cfgfile_load(CFG_FILES_ETC "/empty_key_value.ini", 0); - TEST_ASSERT_NULL(cfgfile, "Expected failured did not occur"); + TEST_ASSERT_NULL(cfgfile, "Expected failure did not occur"); return 0; } @@ -236,7 +236,7 @@ test_cfgfile_missing_section(void) struct rte_cfgfile *cfgfile; cfgfile = rte_cfgfile_load(CFG_FILES_ETC "/missing_section.ini", 0); - TEST_ASSERT_NULL(cfgfile, "Expected failured did not occur"); + TEST_ASSERT_NULL(cfgfile, "Expected failure did not occur"); return 0; }