* 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:
Akim Demaille
2000-12-20 12:00:13 +00:00
parent 29092a5740
commit 5d3214b854
3 changed files with 15 additions and 9 deletions

View File

@@ -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...

View File

@@ -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);

View File

@@ -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])