From 159a7267fad06374e0e2fea458ab39bc94d7c7ef Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" Date: Tue, 1 Jun 1999 20:52:15 +0000 Subject: [PATCH] Added simple sanity checking of the dependencies table. git-svn-id: svn://10.0.0.236/trunk@33328 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/sanitycheck.cgi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/mozilla/webtools/bugzilla/sanitycheck.cgi b/mozilla/webtools/bugzilla/sanitycheck.cgi index 969cfd3c448..f13fb4a1300 100755 --- a/mozilla/webtools/bugzilla/sanitycheck.cgi +++ b/mozilla/webtools/bugzilla/sanitycheck.cgi @@ -166,3 +166,21 @@ while (@row = FetchSQLData()) { Alert("Bad who $who in " . BugLink($id)); } } + + +Status("Checking dependency table"); + +SendSQL("select blocked, dependson from dependencies"); +while (@row = FetchSQLData()) { + my ($blocked, $dependson) = (@row); + if (!defined $bugid{$blocked}) { + Alert("Bad blocked " . BugLink($blocked)); + } + if (!defined $bugid{$dependson}) { + Alert("Bad dependson " . BugLink($dependson)); + } +} + + + +Status("Sanity check completed.");