~ubuntu-branches/ubuntu/lucid/mysql-dfsg-5.1/lucid-security

« back to all changes in this revision

Viewing changes to unittest/examples/no_plan-t.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 22:33:55 UTC
  • mto: (1.2.1) (37.1.1 lucid-security)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: package-import@ubuntu.com-20120222223355-ku1tb4r70osci6v2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2006 MySQL AB
 
1
/* Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. 
2
2
 
3
3
   This program is free software; you can redistribute it and/or modify
4
4
   it under the terms of the GNU General Public License as published by
20
20
 
21
21
/*
22
22
  Sometimes, the number of tests is not known beforehand. In those
23
 
  cases, the plan can be omitted and will instead be written at the
24
 
  end of the test (inside exit_status()).
 
23
  cases, you should invoke plan(NO_PLAN).
 
24
  The plan will be printed at the end of the test (inside exit_status()).
25
25
 
26
26
  Use this sparingly, it is a last resort: planning how many tests you
27
27
  are going to run will help you catch that offending case when some
28
28
  tests are skipped for an unknown reason.
29
29
*/
30
30
int main() {
 
31
  /*
 
32
    We recommend calling plan(NO_PLAN), but want to verify that
 
33
    omitting the call works as well.
 
34
    plan(NO_PLAN);
 
35
  */
31
36
  ok(1, " ");
32
37
  ok(1, " ");
33
38
  ok(1, " ");