Commit 2289264d authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Add a test that we get an error if conflicting mode flags are given

parent 897c7a62
TOP=../../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
# If you give -V and --print-libdir together you should get an error.
# The error includes the program name, so we have to sed off the
# version number.
conflicting_flags:
@$(TEST_HC) -V --print-libdir 2>&1 | sed "s/^ghc-[0-9]*\(\.[0-9]*\)*:/ghc:/"
ghc: cannot use `-V' with `--print-libdir'
Usage: For basic information, try the `--help' option.
test('conflicting_flags', normal, run_command,
['$MAKE -s --no-print-directory conflicting_flags'])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment