~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to storage/ndb/test/include/NDBT_ReturnCodes.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
   Copyright (C) 2003, 2005-2007 MySQL AB
 
3
    All rights reserved. Use is subject to license terms.
 
4
 
 
5
   This program is free software; you can redistribute it and/or modify
 
6
   it under the terms of the GNU General Public License as published by
 
7
   the Free Software Foundation; version 2 of the License.
 
8
 
 
9
   This program is distributed in the hope that it will be useful,
 
10
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
   GNU General Public License for more details.
 
13
 
 
14
   You should have received a copy of the GNU General Public License
 
15
   along with this program; if not, write to the Free Software
 
16
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
 
17
*/
 
18
 
 
19
#ifndef NDBT_RETURNCODES_H
 
20
#define NDBT_RETURNCODES_H
 
21
 
 
22
#ifdef  __cplusplus
 
23
extern "C" {
 
24
#endif
 
25
 
 
26
#define NDBT_OK 0
 
27
#define NDBT_FAILED 1
 
28
#define NDBT_WRONGARGS 2
 
29
#define NDBT_TEMPORARY 3
 
30
/**
 
31
 * NDBT_ProgramExit
 
32
 * This function will print the returncode together with a prefix on 
 
33
 * the screen and then exit the test program. 
 
34
 * Call this function when exiting the main function in your test programs
 
35
 * Returns the return code
 
36
 */
 
37
int NDBT_ProgramExit(int rcode);
 
38
 
 
39
 
 
40
#ifdef  __cplusplus
 
41
}
 
42
#endif
 
43
 
 
44
#endif