+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...
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);
AT_INIT([bison])
-AT_INCLUDE([calc.at])
-AT_INCLUDE([regression.at])
-
-
## ---------------------------- ##
## Checking output file names. ##
## ---------------------------- ##
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])