* config/default.exp (sid_assert): New proc.
+2001-08-22 Ben Elliston <bje@redhat.com>
+
+ * config/default.exp (sid_assert): New proc.
+
2001-08-02 John Healy <jhealy@redhat.com>
* lib/cpudefs.exp (run-sid-tests-raw): Renamed loader to cpu-loader.
return $decoded
}
+# assert a general predicate.
+# pass or fail the DejaGnu test based on the result.
+proc sid_assert {predicate} {
+ global test
+ if $predicate { pass $test } else { fail $test }
+}
# call a command; ignore result (but assert that it's not an ERROR.)
proc sid_assert_success {cmd} {