1 |
# Checking the output filenames. -*- Autotest -*- |
# Checking the output filenames. -*- Autotest -*- |
2 |
# Copyright 2000, 2001 Free Software Foundation, Inc. |
# Copyright 2000, 2001, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
# This program is free software; you can redistribute it and/or modify |
# This program is free software; you can redistribute it and/or modify |
5 |
# it under the terms of the GNU General Public License as published by |
# it under the terms of the GNU General Public License as published by |
84 |
|
|
85 |
# Be sure to reject cases where the parser and the header would have |
# Be sure to reject cases where the parser and the header would have |
86 |
# the same name. |
# the same name. |
87 |
AT_SETUP([Clashing Output Files.]) |
AT_SETUP([Clashing Output Files]) |
88 |
AT_DATA([foo.y], |
AT_DATA([foo.y], |
89 |
[[%% foo: {}; |
[[%% foo: {}; |
90 |
]]) |
]]) |
91 |
|
|
92 |
AT_CHECK([bison -do foo.x foo.y], [1], [], |
AT_CHECK([bison -do foo.x foo.y], [1], [], |
93 |
[foo.y:2: fatal error: header and parser would be both named `foo.x' |
[foo.y:2: fatal error: header and parser would both be named `foo.x' |
94 |
]) |
]) |
95 |
AT_CLEANUP |
AT_CLEANUP |