Extended to regression-test bug #86772
authorZdeněk Šustr <sustr4@cesnet.cz>
Tue, 11 Oct 2011 11:31:42 +0000 (11:31 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Tue, 11 Oct 2011 11:31:42 +0000 (11:31 +0000)
org.glite.testsuites.ctb/LB/tests/lb-test-notif.sh

index d1e82dc..59ea11b 100755 (executable)
@@ -168,6 +168,17 @@ else
 
                        $SYS_RM $$_notifications.txt
 
+                       #Regress #86772
+                       printf "Trying to drop invalid NotiID (regression test for bug #86772)..."
+                       ${LBNOTIFY} drop ${jobid} 2>&1 | ${SYS_GREP} "Invalid" > /dev/null
+                       if [ $? = 0 ]; then
+                               printf " EINVAL"
+                               test_done
+                       else
+                               printf " no error reported!"
+                               test_failed
+                       fi
+
                        #Drop notification
                        printf "Dropping the test notification (${notifid})"
                        dropresult=`${LBNOTIFY} drop ${notifid} 2>&1`