summaryrefslogtreecommitdiff
path: root/unittest/examples
diff options
context:
space:
mode:
authorunknown <mats@mysql.com>2006-04-10 17:06:12 +0200
committerunknown <mats@mysql.com>2006-04-10 17:06:12 +0200
commit4f99f11e9c798225fd5906c23dc26da01ae4f20e (patch)
treea0aa9d8a9cbbeb9f6e3b36fb64e93e0cf337725b /unittest/examples
parent3f9e35d3f350768a8d237bfd369adf63f565f81c (diff)
downloadmariadb-git-4f99f11e9c798225fd5906c23dc26da01ae4f20e.tar.gz
WL#3206 (Adding unit tests):
Added 'test' target to build and run tests. Added documentation. Added README.txt files. Fixing problem with initialization of the Test::Harness::Straps replacement. Added code to filter out non- test directories. unittest/Makefile.am: Adding 'test' target to build and run tests. unittest/examples/skip.t.c: Changing text for skip reason. unittest/examples/skip_all.t.c: Changing text for skip reason. unittest/mytap/tap.c: Adding copyright. Adding documentation. Minor code changes. unittest/mytap/tap.h: Adding copyright. Adding documentation. unittest/unit.pl: Initializing replacement Test::Harness::Straps properly. Adding code to filter non-test directories from default directories to use. unittest/README.txt: New BitKeeper file ``unittest/README.txt''
Diffstat (limited to 'unittest/examples')
-rw-r--r--unittest/examples/skip.t.c2
-rw-r--r--unittest/examples/skip_all.t.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/unittest/examples/skip.t.c b/unittest/examples/skip.t.c
index dd8f96c9541..ef717691700 100644
--- a/unittest/examples/skip.t.c
+++ b/unittest/examples/skip.t.c
@@ -6,7 +6,7 @@ int main() {
plan(4);
ok(1, NULL);
ok(1, NULL);
- SKIP_BLOCK_IF(1, 2, "No point") {
+ SKIP_BLOCK_IF(1, 2, "Example of skipping a few test points in a test") {
ok(1, NULL);
ok(1, NULL);
}
diff --git a/unittest/examples/skip_all.t.c b/unittest/examples/skip_all.t.c
index 7590bdaeb0b..bbde6b63f1c 100644
--- a/unittest/examples/skip_all.t.c
+++ b/unittest/examples/skip_all.t.c
@@ -13,7 +13,7 @@ int has_feature() {
*/
int main() {
if (!has_feature())
- skip_all("Missing feature");
+ skip_all("Example of skipping an entire test");
plan(4);
ok(1, NULL);
ok(1, NULL);