| 1 | /* |
| 2 | Copyright (c) 2006, 2010, Oracle and/or its affiliates |
| 3 | |
| 4 | This program is free software; you can redistribute it and/or modify |
| 5 | it under the terms of the GNU General Public License as published by |
| 6 | the Free Software Foundation; version 2 of the License. |
| 7 | |
| 8 | This program is distributed in the hope that it will be useful, |
| 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | GNU General Public License for more details. |
| 12 | |
| 13 | You should have received a copy of the GNU General Public License |
| 14 | along with this program; if not, write to the Free Software |
| 15 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ |
| 16 | |
| 17 | #include <my_global.h> |
| 18 | |
| 19 | #include <stdlib.h> |
| 20 | #include <tap.h> |
| 21 | |
| 22 | int has_feature() { |
| 23 | return 0; |
| 24 | } |
| 25 | |
| 26 | /* |
| 27 | In some cases, an entire test file does not make sense because there |
| 28 | some feature is missing. In that case, the entire test case can be |
| 29 | skipped in the following manner. |
| 30 | */ |
| 31 | int main() { |
| 32 | if (!has_feature()) |
| 33 | skip_all("Example of skipping an entire test" ); |
| 34 | plan(4); |
| 35 | ok1(1); |
| 36 | ok1(1); |
| 37 | ok1(1); |
| 38 | ok1(1); |
| 39 | return exit_status(); |
| 40 | } |
| 41 | |