tests REFACTOR remove (mark) the unnecesarry tests on int8
Mark the original tests inside the tests blocks which are now replaced
bya separated tests for int8 base type
diff --git a/tests/utests/data/test_printer_xml.c b/tests/utests/data/test_printer_xml.c
index 521f0d6..f43c2a8 100644
--- a/tests/utests/data/test_printer_xml.c
+++ b/tests/utests/data/test_printer_xml.c
@@ -108,11 +108,14 @@
struct lyd_node *tree;
const char *data, *result;
+ #if 0
+ /* test on print int8 is in file ./tests/utests/types/int8.c */
data = "<int8 xmlns=\"urn:tests:types\">\n 15 \t\n </int8>";
result = "<int8 xmlns=\"urn:tests:types\">15</int8>";
CHECK_PARSE_LYD(data, 0, LYD_VALIDATE_PRESENT, tree);
CHECK_LYD_STRING(tree, LYD_PRINT_SHRINK | LYD_PRINT_WITHSIBLINGS, result);
lyd_free_all(tree);
+ #endif
}
static void
diff --git a/tests/utests/data/test_types.c b/tests/utests/data/test_types.c
index 80f6c86..8c47f32 100644
--- a/tests/utests/data/test_types.c
+++ b/tests/utests/data/test_types.c
@@ -142,6 +142,8 @@
const char *data;
char *error_msg;
+#if 0
+ /* type int8 is tested in file ./tests/utests/types/int8.c */
/* valid data */
data = "<int8 xmlns=\"urn:tests:types\">\n 15 \t\n </int8>";
CHECK_PARSE_LYD(data, tree);
@@ -153,6 +155,8 @@
/* invalid range */
error_msg = "Value \"1\" does not satisfy the range constraint.";
TEST_TYPE_ERROR("int8", "1", error_msg, "1");
+#endif
+
error_msg = "Value \"100\" does not satisfy the range constraint.";
TEST_TYPE_ERROR("int16", "100", error_msg, "1");