sbsv2/raptor/test/smoke_suite/dependencies.py
branchfix
changeset 219 c3543adfd26e
parent 218 08ca0919c66d
child 221 8653efb0b76b
--- a/sbsv2/raptor/test/smoke_suite/dependencies.py	Thu Jan 28 16:33:36 2010 +0000
+++ b/sbsv2/raptor/test/smoke_suite/dependencies.py	Fri Jan 29 17:40:04 2010 +0000
@@ -94,10 +94,12 @@
 		rm -rf $(EPOCROOT)/epoc32/include/dependency.rh
 		sbs -f- --noexport -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""
 	t.mustnotmatch = []
+	# Note that the resource build does not exhibit a missing dependency as its dependency files are generated in a separate stage where
+	# the target file isn't actually a target of that stage
 	t.mustmatch.extend([
-		"<warning>Missing dependency detected: $(EPOCROOT)/epoc32/include/dependency.h</warning>",
-		"<warning>Missing dependency detected: $(EPOCROOT)/epoc32/include/dependency.rh</warning>",		
+		"<warning>Missing dependency detected: .*/epoc32/include/dependency.h</warning>"
 		])
+	t.warnings = 1
 	t.run()
 	
 	t.id = "0098d"
@@ -117,6 +119,7 @@
 	t.targets = targets
 	t.mustmatch = []
 	t.countmatch = []
+	t.warnings = 0
 	t.errors = 1 # We expect an error from the first build due to the deliberate dependency file corruption
 	t.run()