mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-23 01:52:48 +03:00
Allow unlimited length decimals, integers etc.
This commit is contained in:
11
runsuite.c
11
runsuite.c
@@ -1026,7 +1026,7 @@ done:
|
|||||||
int
|
int
|
||||||
main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
|
main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
int old_errors, old_tests, old_leaks;
|
int old_errors, old_tests, old_leaks, expected_errors;
|
||||||
|
|
||||||
logfile = fopen(LOGFILE, "w");
|
logfile = fopen(LOGFILE, "w");
|
||||||
if (logfile == NULL) {
|
if (logfile == NULL) {
|
||||||
@@ -1044,16 +1044,17 @@ main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
|
|||||||
old_tests = nb_tests;
|
old_tests = nb_tests;
|
||||||
old_leaks = nb_leaks;
|
old_leaks = nb_leaks;
|
||||||
xsdTest();
|
xsdTest();
|
||||||
|
expected_errors = 3;
|
||||||
printf("Ran %d tests, %d errors, %d leaks\n",
|
printf("Ran %d tests, %d errors, %d leaks\n",
|
||||||
nb_tests - old_tests,
|
nb_tests - old_tests,
|
||||||
nb_errors - old_errors,
|
nb_errors - old_errors,
|
||||||
nb_leaks - old_leaks);
|
nb_leaks - old_leaks);
|
||||||
if (nb_errors - old_errors == 10) {
|
if (nb_errors - old_errors == expected_errors) {
|
||||||
printf("10 errors were expected\n");
|
printf("%d errors were expected\n", expected_errors);
|
||||||
nb_errors = old_errors;
|
nb_errors = old_errors;
|
||||||
} else {
|
} else {
|
||||||
printf("10 errors were expected, got %d errors\n",
|
printf("%d errors were expected, got %d errors\n",
|
||||||
nb_errors - old_errors);
|
expected_errors, nb_errors - old_errors);
|
||||||
nb_errors = old_errors + 1;
|
nb_errors = old_errors + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user