mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
* src/files.c (open_files): Actually the `.output' file is based
on the short_base_name, not base_name. * tests/suite.at (Checking output file names): Adjust.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2000-12-20 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* src/files.c (open_files): Actually the `.output' file is based
|
||||
on the short_base_name, not base_name.
|
||||
* tests/suite.at (Checking output file names): Adjust.
|
||||
|
||||
2000-12-20 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* src/bison.s1: Remove, we now use directly...
|
||||
|
||||
@@ -252,7 +252,7 @@ open_files (void)
|
||||
if (verbose_flag)
|
||||
/* We used to use just .out if spec_name_prefix (-p) was used, but
|
||||
that conflicts with Posix. */
|
||||
foutput = xfopen (stringappend (base_name, EXT_OUTPUT), "w");
|
||||
foutput = xfopen (stringappend (short_base_name, EXT_OUTPUT), "w");
|
||||
|
||||
attrsfile = stringappend (short_base_name, EXT_STYPE_H);
|
||||
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
|
||||
AT_INIT([bison])
|
||||
|
||||
AT_INCLUDE([calc.at])
|
||||
AT_INCLUDE([regression.at])
|
||||
|
||||
|
||||
## ---------------------------- ##
|
||||
## Checking output file names. ##
|
||||
## ---------------------------- ##
|
||||
@@ -28,10 +24,14 @@ AT_CHECK([bison -dv foo.y $1], 0, ignore, ignore)
|
||||
AT_CHECK([ls $2 | sort | tr '\n' ' ' | sed 's/.$//g'], 0, [$2])
|
||||
rm -f $2])
|
||||
|
||||
AT_CHECK_BISON_OUTPUT([], [foo.tab.c foo.tab.h foo.tab.output])
|
||||
AT_CHECK_BISON_OUTPUT([], [foo.output foo.tab.c foo.tab.h])
|
||||
AT_CHECK_BISON_OUTPUT([-o foo.c], [foo.c foo.h foo.output])
|
||||
AT_CHECK_BISON_OUTPUT([-o foo.tab.c], [foo.tab.c foo.tab.h foo.tab.output])
|
||||
AT_CHECK_BISON_OUTPUT([-y], [y.tab.c y.tab.h y.tab.output])
|
||||
AT_CHECK_BISON_OUTPUT([-b bar], [bar.tab.c bar.tab.h bar.tab.output])
|
||||
AT_CHECK_BISON_OUTPUT([-o foo.tab.c], [foo.output foo.tab.c foo.tab.h])
|
||||
AT_CHECK_BISON_OUTPUT([-y], [y.output y.tab.c y.tab.h])
|
||||
AT_CHECK_BISON_OUTPUT([-b bar], [bar.output bar.tab.c bar.tab.h])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
|
||||
AT_INCLUDE([calc.at])
|
||||
AT_INCLUDE([regression.at])
|
||||
|
||||
Reference in New Issue
Block a user