Skip to content

Commit

Permalink
test/cfgfile: fix typo in error messages
Browse files Browse the repository at this point in the history
[ upstream commit fbca1ad85f7725b876d032cb732b3332d247e1f4 ]

Caught by codespell.

Fixes: c54e723 ("test/cfgfile: add basic unit tests")

Signed-off-by: Holly Nichols <hollynichols04@gmail.com>
Signed-off-by: Vinh Tran <vinh.t.tran10@gmail.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
  • Loading branch information
Holly Nichols authored and bluca committed Mar 25, 2024
1 parent f4e263b commit 8a9e1d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>
Hiroki Shirokura <slank.dev@gmail.com>
Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Hiroyuki Mikita <h.mikita89@gmail.com>
Holly Nichols <hollynichols04@gmail.com>
Hongbo Zheng <zhenghongbo3@huawei.com>
Hongjun Ni <hongjun.ni@intel.com>
Hongzhi Guo <guohongzhi1@huawei.com>
Expand Down Expand Up @@ -1438,6 +1439,7 @@ Vincent Guo <guopengfei160@163.com>
Vincent Jardin <vincent.jardin@6wind.com>
Vincent Li <vincent.mc.li@gmail.com>
Vincent S. Cojot <vcojot@redhat.com>
Vinh Tran <vinh.t.tran10@gmail.com>
Vipin Varghese <vipin.varghese@amd.com> <vipin.varghese@intel.com>
Vipul Ashri <vipul.ashri@oracle.com>
Visa Hankala <visa@hankala.org>
Expand Down
8 changes: 4 additions & 4 deletions app/test/test_cfgfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -185,7 +185,7 @@ test_cfgfile_invalid_comment(void)

cfgfile = rte_cfgfile_load_with_params(CFG_FILES_ETC "/sample2.ini", 0,
&params);
TEST_ASSERT_NULL(cfgfile, "Expected failured did not occur");
TEST_ASSERT_NULL(cfgfile, "Expected failure did not occur");

return 0;
}
Expand All @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 8a9e1d1

Please sign in to comment.