chiark
/
gitweb
/
~ian
/
subdirmk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/t/toytest.c: Make test more perspicuous.
[subdirmk.git]
/
lib
/
t
/
toytest.c
diff --git
a/lib/t/toytest.c
b/lib/t/toytest.c
index 233a4295cfa417a5bad736d3a5b676a0c7a48018..09714273fe7021af4ef3a564c8dd32062e4ffbe5 100644
(file)
--- a/
lib/t/toytest.c
+++ b/
lib/t/toytest.c
@@
-9,7
+9,7
@@
int main(void)
const char *p;
p = greeting();
- if (
!STRNCMP(p, =
=, "Hello", 5)) {
+ if (
STRNCMP(p, !
=, "Hello", 5)) {
fprintf(stderr, "greeting `%s' has bad salutation\n", p);
exit(1);
}