![]() |
|
|||
File indexing completed on 2025-05-11 08:24:35
0001 #include <rtems/test.h> 0002 0003 T_TEST_CASE(step) 0004 { 0005 T_step_true(0, true, "all right"); 0006 T_step_true(2, true, "not the right step"); 0007 } 0008 0009 #include "t-self-test.h" 0010 0011 T_TEST_OUTPUT(step, 0012 "B:step\n" 0013 "P:0:0:UI1:test-step.c:5\n" 0014 "F:1:0:UI1:test-step.c:6:planned step (2)\n" 0015 "E:step:N:2:F:1:D:0.001000\n"); 0016 0017 /* 0018 * The license is at the end of the file to be able to use the test code and 0019 * output in examples in the documentation. This is also the reason for the 0020 * dual licensing. The license for RTEMS documentation is CC-BY-SA-4.0. 0021 */ 0022 0023 /* 0024 * SPDX-License-Identifier: BSD-2-Clause OR CC-BY-SA-4.0 0025 * 0026 * Copyright (C) 2018, 2019 embedded brains GmbH & Co. KG 0027 * 0028 * Redistribution and use in source and binary forms, with or without 0029 * modification, are permitted provided that the following conditions 0030 * are met: 0031 * 1. Redistributions of source code must retain the above copyright 0032 * notice, this list of conditions and the following disclaimer. 0033 * 2. Redistributions in binary form must reproduce the above copyright 0034 * notice, this list of conditions and the following disclaimer in the 0035 * documentation and/or other materials provided with the distribution. 0036 * 0037 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 0038 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 0039 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 0040 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 0041 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 0042 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 0043 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 0044 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 0045 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 0046 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 0047 * POSSIBILITY OF SUCH DAMAGE. 0048 * 0049 * ALTERNATIVELY, this software may be distributed under the terms of the 0050 * Creative Commons Attribution-ShareAlike 4.0 International Public License as 0051 * published by Creative Commons, PO Box 1866, Mountain View, CA 94042 0052 * (https://creativecommons.org/licenses/by-sa/4.0/legalcode). 0053 */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |