X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Funittest.cc;h=de3e6f50c3d2f958850dd601438421f451321f72;hb=983523c4536f12781533124cb8a00a4291b8cf79;hp=c5b392dc2e1360753ba4754324b4803b2f337777;hpb=3dcd41c50068eec906a1a11a178e9b3f08ef2326;p=m6w6%2Flibmemcached diff --git a/libtest/unittest.cc b/libtest/unittest.cc index c5b392dc..de3e6f50 100644 --- a/libtest/unittest.cc +++ b/libtest/unittest.cc @@ -463,6 +463,17 @@ static test_return_t vchar_t_TEST(void *) return TEST_SUCCESS; } +static test_return_t vchar_t_compare_neg_TEST(void *) +{ + libtest::vchar_t response; + libtest::vchar_t response2; + libtest::make_vector(response, test_literal_param("fubar\n")); + libtest::make_vector(response2, test_literal_param(__func__)); + test_true(response != response2); + + return TEST_SUCCESS; +} + static test_return_t application_echo_fubar_BINARY(void *) { Application true_app("echo"); @@ -810,6 +821,7 @@ test_st create_tmpfile_TESTS[] ={ test_st application_tests[] ={ {"vchar_t", 0, vchar_t_TEST }, + {"vchar_t compare()", 0, vchar_t_compare_neg_TEST }, {"true", 0, application_true_BINARY }, {"gbd true --fubar", 0, application_gdb_true_BINARY }, {"gbd true", 0, application_gdb_true_BINARY2 },