diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-06-07 02:07:58 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-06-07 02:07:58 +0000 |
commit | 5b66608c4a99400e75198dde60c64faa54c7af8c (patch) | |
tree | 49d2b5da3b50090ccee39c6d122b1c27fa439890 /apps/gperf/tests | |
parent | 04be4518b196ed66fac8dc713190e97f69e27930 (diff) | |
download | ATCD-5b66608c4a99400e75198dde60c64faa54c7af8c.tar.gz |
*** empty log message ***
Diffstat (limited to 'apps/gperf/tests')
-rw-r--r-- | apps/gperf/tests/Makefile | 4 | ||||
-rw-r--r-- | apps/gperf/tests/test.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/gperf/tests/Makefile b/apps/gperf/tests/Makefile index a77a698dc55..09649aa8d8e 100644 --- a/apps/gperf/tests/Makefile +++ b/apps/gperf/tests/Makefile @@ -51,8 +51,8 @@ check: @echo "testing Modula3 reserved words, all items should be found in the set" ./m3out -v < $(srcdir)/modula3.gperf > modula.out -diff -b $(srcdir)/modula.exp modula.out - $(GPERF) -a -o -S2 -p < $(srcdir)/pascal.gperf > pinset.c - $(CXX) $(CFLAGS) -o pout pinset.c test.o + $(GPERF) -a -o -S2 -p < $(srcdir)/pascal.gperf > pinset.cpp + $(CXX) $(CFLAGS) -o pout pinset.cpp test.o @echo "testing Pascal reserved words, all items should be found in the set" ./pout -v < $(srcdir)/pascal.gperf > pascal.out -diff -b $(srcdir)/pascal.exp pascal.out diff --git a/apps/gperf/tests/test.cpp b/apps/gperf/tests/test.cpp index 26672c0dd39..818ad6a3fcc 100644 --- a/apps/gperf/tests/test.cpp +++ b/apps/gperf/tests/test.cpp @@ -14,7 +14,7 @@ char *in_word_set (const char *str, int len); int main (int argc, char *argv[]) { - int verbose = argc > 1 && strcmp (argv[1], "-v") ? 1 : 0; + int verbose = argc > 1 && strcmp (argv[1], "-v") == 0 ? 1 : 0; char buf[MAX_LEN]; while (fgets (buf, sizeof buf, stdin) != 0) |