tests/libc: Add newline after error messages - scc - simple c99 compiler
HTML git clone git://git.simple-cc.org/scc
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 223e363bd97b2e8cdc246a6f36684491c92c1fe9
DIR parent 24bd7b7da52f8606e5c5a8086c6b731d95154412
HTML Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Fri, 27 Mar 2026 09:51:10 +0100
tests/libc: Add newline after error messages
Diffstat:
M tests/libc/execute/0006-limits.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
DIR diff --git a/tests/libc/execute/0006-limits.c b/tests/libc/execute/0006-limits.c
@@ -95,19 +95,19 @@ test2()
c |= 1;
}
if (c != CHAR_MAX)
- printf("wrong char max %d-%d", c, CHAR_MAX);
+ printf("wrong char max %d-%d\n", c, CHAR_MAX);
if (CHAR_MIN != 0)
- printf("wrong char min %d-%d", c, CHAR_MIN);
+ printf("wrong char min %d-%d\n", c, CHAR_MIN);
} else {
for (c = i = 0; i < CHAR_BIT -1; i++) {
c <<= 1;
c |= 1;
}
if (c != CHAR_MAX)
- printf("wrong char max %d-%d", c, CHAR_MAX);
+ printf("wrong char max %d-%d\n", c, CHAR_MAX);
c = -c - 1;
if (c != CHAR_MIN)
- printf("wrong char min %d-%d", c, CHAR_MIN);
+ printf("wrong char min %d-%d\n", c, CHAR_MIN);
}
}
@@ -136,7 +136,7 @@ test3()
UMAX(uc);
if (uc != UCHAR_MAX)
- printf("wrong unsigned char max %u %u", uc, UCHAR_MAX);
+ printf("wrong unsigned char max %u %u\n", uc, UCHAR_MAX);
SMAX(i);
if (i != INT_MAX)