Debian Codegraph @

src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/testtools/ctest/tests/ctest_ut/testsuiteinitializecleanuptests.c

raw
1 // Copyright (c) Microsoft. All rights reserved.
2 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
4 #include "ctest.h"
5
6 static int x;
7
8 CTEST_BEGIN_TEST_SUITE(TestSuiteInitializeCleanupTests)
9
10 CTEST_SUITE_INITIALIZE()
11 {
12 x = 42;
13 }
14
15 CTEST_SUITE_CLEANUP()
16 {
17 }
18
19 CTEST_FUNCTION(Test1)
20 {
21 CTEST_ASSERT_ARE_EQUAL(int, 42, x);
22 }
23
24 CTEST_END_TEST_SUITE(TestSuiteInitializeCleanupTests)