chiark / gitweb /
Warning reporting: Add a test of the warning suppression system
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 28 Dec 2019 13:55:59 +0000 (13:55 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 30 Dec 2019 11:35:16 +0000 (11:35 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/filter/stderr.expected
tests/filter/sub/dir/Dir.mk.expected
tests/filter/sub/dir/Dir.sd.mk

index 5568e62..11dab74 100644 (file)
@@ -5,3 +5,4 @@ subdirmk: warning (local+global): saw both WARN and &WARN
  saw &WARN at ./Dir.sd.mk:7
  saw &WARN at ./Dir.sd.mk:10
  saw &WARN at ./Dir.sd.mk:11
+subdirmk: warning (unknown-warning): ./sub/dir/Dir.sd.mk:3: attempt to suppress unknown warning(s) `some-unknown-warning'
index 6748cdc..812e51b 100644 (file)
@@ -2,6 +2,7 @@
 # Prefix in sub/dir
 # subdirectory test cases
 
+
 sub/dir/
 
 # sub_dir_TARGETS_notarget += 42
index 556d671..4b5a50c 100644 (file)
@@ -1,5 +1,7 @@
 # subdirectory test cases
 
+&:warn !some-unknown-warning
+
 &:changequote &
 &/