Added a new target message to comply with newer versions of GNU Make (#9068)
#fixes 9067 Unit tests were failing on a system with GNU Make v 4.1
This commit is contained in:
parent
2f6a6a45a9
commit
85f84aabed
@ -1166,11 +1166,13 @@ def _has_make_target(self, target):
|
||||
#
|
||||
# GNU Make:
|
||||
# make: *** No rule to make target `test'. Stop.
|
||||
# *** No rule to make target 'test'. Stop.
|
||||
#
|
||||
# BSD Make:
|
||||
# make: don't know how to make test. Stop
|
||||
missing_target_msgs = [
|
||||
"No rule to make target `{0}'. Stop.",
|
||||
"No rule to make target '{0}'. Stop.",
|
||||
"don't know how to make {0}. Stop",
|
||||
]
|
||||
|
||||
|
@ -59,6 +59,7 @@ def test_affirmative_make_check(directory, config, mock_packages):
|
||||
'directory',
|
||||
glob.iglob(os.path.join(DATA_PATH, 'make', 'negative', '*'))
|
||||
)
|
||||
@pytest.mark.regression('9067')
|
||||
def test_negative_make_check(directory, config, mock_packages):
|
||||
"""Tests that Spack correctly ignores false positives in a Makefile."""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user