2 * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 * @file widget_version.cpp
18 * @author Bartlomiej Grzelewski (b.grzelewski@samsung.com)
20 * @brief Implementation file for test cases for engine internal tests
22 #include <dpl/test/test_runner_child.h>
25 #include <sys/types.h>
28 RUNNER_TEST_GROUP_INIT(DPL_TESTS_TEST_CHILD)
32 RUNNER_ASSERT_MSG(1, "This test should pass");
35 RUNNER_CHILD_TEST(t01_pass)
37 RUNNER_ASSERT_MSG(1, "This test should pass");
40 RUNNER_CHILD_TEST(t02_fail)
42 RUNNER_ASSERT_MSG(0, "This test should fail");
45 RUNNER_CHILD_TEST(t03_fail_timeout)
48 RUNNER_ASSERT_MSG(1, "This test should fail");
51 RUNNER_CHILD_TEST(t04_fail)
53 RUNNER_ASSERT_MSG(1, "This test should fail");
54 RUNNER_ASSERT_MSG(1, "This test should fail");
55 RUNNER_ASSERT_MSG(1, "This test should fail");
56 RUNNER_ASSERT_MSG(1, "This test should fail");
57 RUNNER_ASSERT_MSG(0, "This test should fail");
60 RUNNER_CHILD_TEST(t05_fail_child_died)
62 kill(getpid(), SIGKILL);
63 RUNNER_ASSERT_MSG(1, "This test should fail");
66 RUNNER_CHILD_TEST(t06_pass_8_second_test)
69 RUNNER_ASSERT_MSG(1, "This test should pass");
72 RUNNER_CHILD_TEST(t07_fail_unknown_exception)
77 RUNNER_CHILD_TEST(t08_fail_unknown_exception)
82 RUNNER_CHILD_TEST(t09_fail_you_should_see_text_normal_assert)
84 RUNNER_ASSERT_MSG(0, "Normal assert");
87 RUNNER_CHILD_TEST(t10_pass)
89 RUNNER_ASSERT_MSG(1, "Normal assert");