diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2020-11-08 10:58:36 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2020-11-08 10:58:36 +0100 |
commit | b4158caf13bc715096c1df7c040c9d25995d76f2 (patch) | |
tree | a07d7d0764a8488f4b5ebef1561e2f3d8caacc05 /test/testu.c | |
parent | 0f259c3073f341c48468e80e93731daa31698030 (diff) | |
parent | fc9ba4264eafbb5a6ec0f3cc4cd2e1964c9b8fcf (diff) |
Update upstream source from tag 'upstream/6.9.6'
Update to upstream version '6.9.6'
with Debian dir 111ba939e0875272a460014bdcf030d413ce8f3f
Diffstat (limited to 'test/testu.c')
-rw-r--r-- | test/testu.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/test/testu.c b/test/testu.c index 24397ab..c1971e7 100644 --- a/test/testu.c +++ b/test/testu.c @@ -14,6 +14,10 @@ static int nsucc = 0; static int nfail = 0; static int nerror = 0; +#ifdef __TRUSTINSOFT_ANALYZER__ +static int nall = 0; +#endif + static FILE* err_file; #ifndef POSIX_TEST @@ -36,7 +40,7 @@ static void uconv(char* from, char* to, int len) if (c == 0) { c = (unsigned char )from[i+1]; if (c < 0x20 || c >= 0x7f || c == 0x5c || c == 0x22) { - sprintf(q, "\\%03o", c); + sprintf(q, "\\%03o", (unsigned int )c); q += 4; } else { @@ -45,10 +49,10 @@ static void uconv(char* from, char* to, int len) } } else { - sprintf(q, "\\%03o", c); + sprintf(q, "\\%03o", (unsigned int )c); q += 4; c = (unsigned char )from[i+1]; - sprintf(q, "\\%03o", c); + sprintf(q, "\\%03o", (unsigned int )c); q += 4; } } @@ -58,6 +62,10 @@ static void uconv(char* from, char* to, int len) static void xx(char* pattern, char* str, int from, int to, int mem, int not) { +#ifdef __TRUSTINSOFT_ANALYZER__ + if (nall++ % TIS_TEST_CHOOSE_MAX != TIS_TEST_CHOOSE_CURRENT) return; +#endif + int r; char cpat[4000], cstr[4000]; |