chiark
/
gitweb
/
~ianmdlvl
/
secnet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cab1d4f
)
lib/t/toytest.c: Make test more perspicuous.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 8 Nov 2019 17:32:50 +0000
(17:32 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 8 Nov 2019 17:32:50 +0000
(17:32 +0000)
What was I thinking?
lib/t/toytest.c
patch
|
blob
|
history
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);
}