/*
- * Copyright (c) 2008 Zmanda Inc. All Rights Reserved.
+ * Copyright (c) 2008,2009 Zmanda, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * Contact information: Zmanda Inc, 465 N Mathlida Ave, Suite 300
+ * Contact information: Zmanda Inc, 465 S. Mathilda Ave., Suite 300
* Sunnyvale, CA 94085, USA, or: http://www.zmanda.com
*
* Author: Dustin J. Mitchell <dustin@zmanda.com>
* Round-trip testing of quoting functions
*/
-static int
+static gboolean
test_round_trip(void)
{
char **strp;
return TRUE;
}
-static int
+static gboolean
test_split_quoted_strings(void)
{
char **iter1, **iter2, **iter3;
const char *expected[5];
};
-static int
+static gboolean
test_split_quoted_strings_edge(void)
{
gboolean success = TRUE;
/****
* Test unquoting of some pathological strings
*/
-static int
+static gboolean
test_unquote_string(void)
{
gboolean success = TRUE;
/****
* Test the strquotedstr function
*/
-static int
+static gboolean
test_strquotedstr_skipping(void)
{
char **iter1, **iter2;
return success;
}
-static int
+static gboolean
test_strquotedstr_edge_invalid(void)
{
gboolean success = TRUE;
return success;
}
-static int
+static gboolean
test_strquotedstr_edge_valid(void)
{
gboolean success = TRUE;
main(int argc, char **argv)
{
static TestUtilsTest tests[] = {
- TU_TEST(test_round_trip, 5),
- TU_TEST(test_unquote_string, 5),
- TU_TEST(test_split_quoted_strings, 5),
- TU_TEST(test_split_quoted_strings_edge, 5),
- TU_TEST(test_strquotedstr_skipping, 5),
- TU_TEST(test_strquotedstr_edge_invalid, 5),
- TU_TEST(test_strquotedstr_edge_valid, 5),
+ TU_TEST(test_round_trip, 90),
+ TU_TEST(test_unquote_string, 90),
+ TU_TEST(test_split_quoted_strings, 90),
+ TU_TEST(test_split_quoted_strings_edge, 90),
+ TU_TEST(test_strquotedstr_skipping, 90),
+ TU_TEST(test_strquotedstr_edge_invalid, 90),
+ TU_TEST(test_strquotedstr_edge_valid, 90),
TU_END()
};