* Update dependencies

* Fix test suites

* Use latest deps

* Remove boilerplate main.c files

* Fix test suites

* Fix Linux build

* Do not use cppunittest by default
This commit is contained in:
Dan Cristoloveanu 2021-04-07 08:52:48 -07:00 коммит произвёл GitHub
Родитель f2f002c0a2
Коммит 8c73659a8f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
110 изменённых файлов: 110 добавлений и 712 удалений

Просмотреть файл

@ -23,7 +23,7 @@ option(run_unittests "set run_unittests to ON to run unittests (default is OFF)"
option(run_e2e_tests "set run_e2e_tests to ON to run e2e tests (default is OFF). Chsare dutility does not have any e2e tests, but the option needs to exist to evaluate in IF statements" OFF)
option(run_int_tests "set run_int_tests to ON to integration tests (default is OFF)." OFF)
option(run_perf_tests "set run_perf_tests to ON to run perf tests (default is OFF)." OFF)
option(use_cppunittest "set use_cppunittest to ON to build CppUnitTest tests on Windows (default is ON)" ON)
option(use_cppunittest "set use_cppunittest to ON to build CppUnitTest tests on Windows (default is ON)" OFF)
option(run_traceability "run traceability tool (default is ON)" ON)
#canon way of limiting an option to a predefined set of values

Просмотреть файл

@ -83,7 +83,7 @@ static int chaosThread(
return 0;
}
BEGIN_TEST_SUITE(call_once_inttests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -165,4 +165,4 @@ TEST_FUNCTION(call_once_chaos_knight)
}
END_TEST_SUITE(call_once_inttests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(call_once_inttests, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -39,7 +39,7 @@ IMPLEMENT_UMOCK_C_ENUM_TYPE(CALL_ONCE_RESULT, CALL_ONCE_RESULT_VALUES);
static call_once_t g_state = CALL_ONCE_NOT_CALLED;
BEGIN_TEST_SUITE(call_once_unittests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -199,4 +199,4 @@ TEST_FUNCTION(call_once_end_without_success_switches_state_to_0)
}
END_TEST_SUITE(call_once_unittests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(call_once_unittests, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -60,7 +60,7 @@ static int chaosThread(
return 0;
}
BEGIN_TEST_SUITE(lazy_init_inttests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -114,4 +114,4 @@ TEST_FUNCTION(lazy_init_chaos_knight)
}
END_TEST_SUITE(lazy_init_inttests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(lazy_init_inttests, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -46,7 +46,7 @@ TEST_DEFINE_ENUM_TYPE(CALL_ONCE_RESULT, CALL_ONCE_RESULT_VALUES);
IMPLEMENT_UMOCK_C_ENUM_TYPE(CALL_ONCE_RESULT, CALL_ONCE_RESULT_VALUES);
BEGIN_TEST_SUITE(lazy_init_unittests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -181,4 +181,4 @@ TEST_FUNCTION(lazy_init_does_not_init_twice)
///clean
}
END_TEST_SUITE(lazy_init_unittests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(lazy_init_unittests, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(refcount_unittests, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -62,7 +62,7 @@ MOCK_FUNCTION_END()
/* Tests_SRS_REFCOUNT_01_011: [ DEFINE_REFCOUNT_TYPE_WITH_CUSTOM_ALLOC shall behave like DEFINE_REFCOUNT_TYPE, but use malloc_func and free_func for memory allocation and free. ]*/
DEFINE_REFCOUNT_TYPE_WITH_CUSTOM_ALLOC(TEST_STRUCT, test_malloc, test_free);
BEGIN_TEST_SUITE(refcount_unittests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(TestClassInitialize)
{
@ -310,4 +310,4 @@ BEGIN_TEST_SUITE(refcount_unittests)
ASSERT_ARE_EQUAL(char_ptr, umock_c_get_expected_calls(), umock_c_get_actual_calls());
}
END_TEST_SUITE(refcount_unittests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

2
deps/c-build-tools поставляемый

@ -1 +1 @@
Subproject commit cc45cf5dbcf12ad67eccd6479dd5ccfa2b51a46e
Subproject commit 2430a64a60ff8dbd8a76e7ee666ad5a67911be45

2
deps/c-logging поставляемый

@ -1 +1 @@
Subproject commit 1cce6f88709285688a2ef9561bff84c01f7c13ca
Subproject commit 002f8e5c2eb1f4ba55a4bd6540a3a5358e91d4d4

2
deps/c-testrunnerswitcher поставляемый

@ -1 +1 @@
Subproject commit b3ff19cebb6c8e9bf743281a448d7c6ed72c1a5e
Subproject commit 65b0522b48295bc8db260a5db8b932a0c06d863d

2
deps/ctest поставляемый

@ -1 +1 @@
Subproject commit 0bd72addd9b0c58f3c53fe3a2d69b346ec200c0b
Subproject commit e4bab4cb413825ec561b4889fdb9a76fc5983b74

2
deps/macro-utils-c поставляемый

@ -1 +1 @@
Subproject commit 773bd6dc3c5640fb2e3aaed6903989cf2adcc053
Subproject commit 0f9a257528fdbe1e5edfe6dda704b968bc292820

2
deps/mimalloc поставляемый

@ -1 +1 @@
Subproject commit 15220c684331d1c486550d7a6b1736e0a1773816
Subproject commit b19da8e362acae8944c60a40cf5c40c8f5ebeb44

2
deps/umock-c поставляемый

@ -1 +1 @@
Subproject commit e8ef999a3d938ae6c47684cde6074f4449b02bb1
Subproject commit c312c2d66ab2e279b37880a2c8f90871c3c4b7f2

Просмотреть файл

@ -89,7 +89,7 @@ static FILE_HANDLE file_create_helper(const char* filename)
return file_handle;
}
BEGIN_TEST_SUITE(file_int)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(a)
@ -644,4 +644,4 @@ TEST_FUNCTION(large_simultaneous_reads_succeed)
file_destroy(file_handle);
(void)delete_file(filename);
}
END_TEST_SUITE(file_int)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
//Copyright(c) Microsoft.All rights reserved.
//Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(file_int, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -23,7 +23,7 @@
static TEST_MUTEX_HANDLE test_serialize_mutex;
BEGIN_TEST_SUITE(custom_heap_perf_tests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -193,4 +193,4 @@ TEST_FUNCTION(free_performance)
free(blocks);
}
END_TEST_SUITE(custom_heap_perf_tests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,11 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(custom_heap_perf_tests, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -15,7 +15,7 @@ static TEST_MUTEX_HANDLE g_testByTest;
#include "c_pal/interlocked.h"
BEGIN_TEST_SUITE(interlocked_int)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(a)
{
@ -1045,4 +1045,4 @@ TEST_FUNCTION(interlocked_xor_8_does_bitwise_xor)
ASSERT_ARE_EQUAL(uint8_t, 0xFF, return_val, "Return value is incorrect");
}
END_TEST_SUITE(interlocked_int)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
//Copyright(c) Microsoft.All rights reserved.
//Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(interlocked_int, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -1,12 +0,0 @@
//Copyright(c) Microsoft.All rights reserved.
//Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(pipe_int, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -17,7 +17,7 @@
static TEST_MUTEX_HANDLE g_testByTest;
BEGIN_TEST_SUITE(pipe_int)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(a)
@ -88,4 +88,4 @@ TEST_FUNCTION(pipe_open_close_succeeds_returns_non_zero_exit_code)
ASSERT_ARE_EQUAL(int, 42, exit_code);
}
END_TEST_SUITE(pipe_int)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
//Copyright(c) Microsoft.All rights reserved.
//Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(sync_int, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -78,7 +78,7 @@ static int increment_on_wake_up(void* address)
}
BEGIN_TEST_SUITE(sync_int)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(a)
@ -221,4 +221,4 @@ TEST_FUNCTION(wait_on_address_returns_after_timeout_elapses)
ASSERT_IS_FALSE(return_val, "wait_on_address should have returned false");
}
END_TEST_SUITE(sync_int)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
//Copyright(c) Microsoft.All rights reserved.
//Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(sysinfo_int, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -17,7 +17,7 @@
static TEST_MUTEX_HANDLE g_testByTest;
BEGIN_TEST_SUITE(sysinfo_int)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(a)
{
@ -63,4 +63,4 @@ TEST_FUNCTION(sysinfo_get_processor_count_returns_processor_count)
/* Tests_SRS_SYSINFO_01_002: [ If any error occurs, `sysinfo_get_processor_count` shall return 0. ]*/
/* Can't really be induced on "any" platform, tested independently for each psupported platform */
END_TEST_SUITE(sysinfo_int)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
//Copyright(c) Microsoft.All rights reserved.
//Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(timer_int, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -16,7 +16,7 @@
static TEST_MUTEX_HANDLE g_testByTest;
BEGIN_TEST_SUITE(timer_int)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(a)
{
@ -304,4 +304,4 @@ TEST_FUNCTION(timer_global_get_elapsed_us_measures_a_seconds)
ASSERT_IS_TRUE((end - start) < 1500000);
}
END_TEST_SUITE(timer_int)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -51,7 +51,7 @@ static void on_umock_c_error(UMOCK_C_ERROR_CODE error_code)
ASSERT_FAIL("umock_c reported error :%" PRI_MU_ENUM "", MU_ENUM_VALUE(UMOCK_C_ERROR_CODE, error_code));
}
BEGIN_TEST_SUITE(gballoc_hl_passthrough_ut)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(init_suite)
{
@ -441,4 +441,4 @@ TEST_FUNCTION(gballoc_hl_get_free_latency_buckets_zeroes)
gballoc_hl_deinit();
}
END_TEST_SUITE(gballoc_hl_passthrough_ut)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(gballoc_hl_passthrough_ut, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -14,7 +14,7 @@ static TEST_MUTEX_HANDLE g_testByTest;
#include "c_pal/gballoc_ll.h"
BEGIN_TEST_SUITE(gballoc_ll_passthrough_int)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(TestClassInitialize)
{
@ -159,4 +159,4 @@ TEST_FUNCTION(gballoc_ll_size_works)
}
END_TEST_SUITE(gballoc_ll_passthrough_int)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(gballoc_ll_passthrough_int, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -44,7 +44,7 @@ static void on_umock_c_error(UMOCK_C_ERROR_CODE error_code)
ASSERT_FAIL("umock_c reported error :%" PRI_MU_ENUM "", MU_ENUM_VALUE(UMOCK_C_ERROR_CODE, error_code));
}
BEGIN_TEST_SUITE(gballoc_ll_passthrough_ut)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(TestClassInitialize)
{
@ -213,4 +213,4 @@ TEST_FUNCTION(gballoc_ll_size_returns)
ASSERT_ARE_EQUAL(size_t, 32, size);
}
END_TEST_SUITE(gballoc_ll_passthrough_ut)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(gballoc_ll_passthrough_ut, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -61,7 +61,7 @@ static bool hook_mock_atomic_compare_exchange_pointer(void* volatile_atomic* obj
return atomic_compare_exchange_strong(object, expected, desired);
}
BEGIN_TEST_SUITE(interlocked_linux_unittests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -773,4 +773,4 @@ TEST_FUNCTION(interlocked_xor_8_calls_atomic_fetch_xor)
ASSERT_ARE_EQUAL(char_ptr, umock_c_get_expected_calls(), umock_c_get_actual_calls(), "Actual calls differ from expected calls");
ASSERT_ARE_EQUAL(uint8_t, 0xF0, return_val, "Return value is incorrect.");
}
END_TEST_SUITE(interlocked_linux_unittests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(interlocked_linux_unittests, failedTestCount);
return (int)failedTestCount;
}

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(reals_linux_ut, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -9,7 +9,7 @@
#include "real_threadapi.h"
#include "real_sync.h"
BEGIN_TEST_SUITE(reals_linux_ut)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
// this test makes sure that the mappings work
// (there is a real_ function corresponding to the original)
@ -25,4 +25,4 @@ TEST_FUNCTION(check_all_c_pal_reals)
// no explicit assert, if it builds it works
}
END_TEST_SUITE(reals_linux_ut)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(pipe_linux_unittests, failedTestCount);
return (int)failedTestCount;
}

Просмотреть файл

@ -33,7 +33,7 @@ static void on_umock_c_error(UMOCK_C_ERROR_CODE error_code)
static FILE* test_file_handle = (FILE*)0x1001;
BEGIN_TEST_SUITE(pipe_linux_unittests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -197,4 +197,4 @@ TEST_FUNCTION(pipe_pclose_fails_when_close_fails)
ASSERT_ARE_EQUAL(char_ptr, umock_c_get_expected_calls(), umock_c_get_actual_calls());
}
END_TEST_SUITE(pipe_linux_unittests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,11 +0,0 @@
// Copyright(C) Microsoft Corporation.All rights reserved.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(string_utils_int_tests, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -19,7 +19,7 @@
#include "c_pal/string_utils.h"
BEGIN_TEST_SUITE(string_utils_int_tests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -199,4 +199,4 @@ TEST_FUNCTION(vsprintf_char_with_a_non_empty_string_succeeds)
}
END_TEST_SUITE(string_utils_int_tests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(sync_linux_unittests, failedTestCount);
return (int)failedTestCount;
}

Просмотреть файл

@ -61,7 +61,7 @@ static int hook_mock_syscall(long call_code, int* uaddr, int futex_op, int val,
}
BEGIN_TEST_SUITE(sync_linux_unittests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -188,4 +188,4 @@ TEST_FUNCTION(wake_by_address_single_calls_sycall)
///assert
ASSERT_ARE_EQUAL(char_ptr, umock_c_get_expected_calls(), umock_c_get_actual_calls(), "Actual calls differ from expected calls");
}
END_TEST_SUITE(sync_linux_unittests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(sysinfo_linux_unittests, failedTestCount);
return (int)failedTestCount;
}

Просмотреть файл

@ -40,7 +40,7 @@ static void on_umock_c_error(UMOCK_C_ERROR_CODE error_code)
ASSERT_FAIL("umock_c reported error :%" PRI_MU_ENUM "", MU_ENUM_VALUE(UMOCK_C_ERROR_CODE, error_code));
}
BEGIN_TEST_SUITE(sysinfo_linux_unittests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -144,4 +144,4 @@ TEST_FUNCTION(when_sysconf_returns_more_than_UINT32_MAX_sysinfo_get_processor_co
ASSERT_ARE_EQUAL(uint32_t, 0, proc_count);
}
END_TEST_SUITE(sysinfo_linux_unittests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(timer_linux_unittests, failedTestCount);
return (int)failedTestCount;
}

Просмотреть файл

@ -54,7 +54,7 @@ static void on_umock_c_error(UMOCK_C_ERROR_CODE error_code)
ASSERT_FAIL("umock_c reported error :%" PRI_MU_ENUM "", MU_ENUM_VALUE(UMOCK_C_ERROR_CODE, error_code));
}
BEGIN_TEST_SUITE(timer_linux_unittests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -559,4 +559,4 @@ TEST_FUNCTION(when_clock_gettime_fails_timer_global_get_elapsed_us_also_fails)
ASSERT_ARE_EQUAL(char_ptr, umock_c_get_expected_calls(), umock_c_get_actual_calls());
}
END_TEST_SUITE(timer_linux_unittests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(uniqueid_unittests, failedTestCount);
return (int)failedTestCount;
}

Просмотреть файл

@ -23,7 +23,7 @@ TEST_DEFINE_ENUM_TYPE(UNIQUEID_RESULT, UNIQUEID_RESULT_VALUES);
static char* uidBuffer = NULL;
static char* uidBuffer2 = NULL;
BEGIN_TEST_SUITE(uniqueid_unittests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -98,4 +98,4 @@ TEST_FUNCTION(UniqueId_Generate_Succeed)
ASSERT_ARE_EQUAL(size_t, 36, strlen(uid) );
}
END_TEST_SUITE(uniqueid_unittests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -119,7 +119,7 @@ static void setup_sockets(SOCKET* client_socket, SOCKET* server_socket, SOCKET*
ASSERT_ARE_EQUAL(int, 0, ioctlsocket(*server_socket, FIONBIO, &mode));
}
BEGIN_TEST_SUITE(async_socket_win32_inttests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -345,4 +345,4 @@ TEST_FUNCTION(when_server_socket_is_closed_receive_errors_on_client_side)
execution_engine_dec_ref(execution_engine);
}
END_TEST_SUITE(async_socket_win32_inttests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,11 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(async_socket_win32_inttests, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -121,7 +121,7 @@ MOCK_FUNCTION_END()
}
#endif
BEGIN_TEST_SUITE(async_socket_win32_unittests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -2488,4 +2488,4 @@ TEST_FUNCTION(on_io_complete_with_ERROR_CONNECTION_ABORTED_indicates_the_receive
on_io_complete_with_error_indicates_the_receive_as_complete_with_ABANDONED(ERROR_CONNECTION_ABORTED);
}
END_TEST_SUITE(async_socket_win32_unittests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,11 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(async_socket_win32_unittests, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -67,7 +67,7 @@ MOCK_FUNCTION_END()
}
#endif
BEGIN_TEST_SUITE(execution_engine_win32_unittests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -386,4 +386,4 @@ TEST_FUNCTION(execution_engine_win32_get_threadpool_returns_the_underlying_PTP_P
execution_engine_dec_ref(execution_engine);
}
END_TEST_SUITE(execution_engine_win32_unittests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,11 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(execution_engine_win32_unittests, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -154,7 +154,7 @@ static FILE_HANDLE start_file_io_async(FILE_IO_ASYNC_TYPE type, unsigned char* b
}
BEGIN_TEST_SUITE(file_win32_unittests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -1031,4 +1031,4 @@ TEST_FUNCTION(on_file_io_complete_win32_calls_callback_unsuccessfully_for_read_b
file_destroy(file_handle);
}
END_TEST_SUITE(file_win32_unittests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(file_win32_unittests, failedTestCount);
return (int)failedTestCount;
}

Просмотреть файл

@ -16,7 +16,7 @@ static TEST_MUTEX_HANDLE g_testByTest;
#include "c_pal/gballoc_hl.h"
BEGIN_TEST_SUITE(gballoc_hl_passthrough_int)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(TestClassInitialize)
{
@ -151,4 +151,4 @@ TEST_FUNCTION(gballoc_hl_calloc_works)
gballoc_hl_free(ptr);
}
END_TEST_SUITE(gballoc_hl_passthrough_int)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(gballoc_hl_passthrough_int, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -43,7 +43,7 @@ MU_DEFINE_ENUM_STRINGS(LAZY_INIT_RESULT, LAZY_INIT_RESULT_VALUES);
TEST_DEFINE_ENUM_TYPE(LAZY_INIT_RESULT, LAZY_INIT_RESULT_VALUES);
IMPLEMENT_UMOCK_C_ENUM_TYPE(LAZY_INIT_RESULT, LAZY_INIT_RESULT_VALUES);
BEGIN_TEST_SUITE(gballoc_hl_metrics_unittests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -1592,4 +1592,4 @@ TEST_FUNCTION(gballoc_hl_get_latency_bucket_metadata_returns_the_array_with_the_
gballoc_hl_deinit();
}
END_TEST_SUITE(gballoc_hl_metrics_unittests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,11 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(gballoc_hl_metrics_unittests, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -38,7 +38,7 @@ static void on_umock_c_error(UMOCK_C_ERROR_CODE error_code)
ASSERT_FAIL("umock_c reported error :%" PRI_MU_ENUM "", MU_ENUM_VALUE(UMOCK_C_ERROR_CODE, error_code));
}
BEGIN_TEST_SUITE(gballoc_hl_metrics_wout_init_unittests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -186,4 +186,4 @@ TEST_FUNCTION(gballoc_free_when_not_initialized_returns)
ASSERT_ARE_EQUAL(char_ptr, umock_c_get_expected_calls(), umock_c_get_actual_calls());
}
END_TEST_SUITE(gballoc_hl_metrics_wout_init_unittests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,11 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(gballoc_hl_metrics_wout_init_unittests, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -53,7 +53,7 @@ static void on_umock_c_error(UMOCK_C_ERROR_CODE error_code)
ASSERT_FAIL("umock_c reported error :%" PRI_MU_ENUM "", MU_ENUM_VALUE(UMOCK_C_ERROR_CODE, error_code));
}
BEGIN_TEST_SUITE(gballoc_hl_passthrough_ut)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(init_suite)
{
@ -574,4 +574,4 @@ TEST_FUNCTION(gballoc_hl_get_free_latency_buckets_zeroes)
gballoc_hl_deinit();
}
END_TEST_SUITE(gballoc_hl_passthrough_ut)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(gballoc_hl_passthrough_ut, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -18,7 +18,7 @@ static TEST_MUTEX_HANDLE g_testByTest;
#include "jemalloc/jemalloc.h"
BEGIN_TEST_SUITE(gballoc_ll_jemalloc_int)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(TestClassInitialize)
{
@ -158,4 +158,4 @@ TEST_FUNCTION(gballoc_ll_size_works)
gballoc_ll_free(ptr);
}
END_TEST_SUITE(gballoc_ll_jemalloc_int)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(gballoc_ll_jemalloc_int, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -45,7 +45,7 @@ static void on_umock_c_error(UMOCK_C_ERROR_CODE error_code)
ASSERT_FAIL("umock_c reported error :%" PRI_MU_ENUM "", MU_ENUM_VALUE(UMOCK_C_ERROR_CODE, error_code));
}
BEGIN_TEST_SUITE(gballoc_ll_jemalloc_ut)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(TestClassInitialize)
{
@ -217,4 +217,4 @@ TEST_FUNCTION(gballoc_ll_size_calls_mi_usable_size)
ASSERT_ARE_EQUAL(size_t, 32, size);
}
END_TEST_SUITE(gballoc_ll_jemalloc_ut)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(gballoc_ll_jemalloc_ut, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -18,7 +18,7 @@ static TEST_MUTEX_HANDLE g_testByTest;
#include "mimalloc.h"
BEGIN_TEST_SUITE(gballoc_ll_mimalloc_int)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(TestClassInitialize)
{
@ -160,4 +160,4 @@ TEST_FUNCTION(gballoc_ll_size_works)
gballoc_ll_free(ptr);
}
END_TEST_SUITE(gballoc_ll_mimalloc_int)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(gballoc_ll_mimalloc_int, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -45,7 +45,7 @@ static void on_umock_c_error(UMOCK_C_ERROR_CODE error_code)
ASSERT_FAIL("umock_c reported error :%" PRI_MU_ENUM "", MU_ENUM_VALUE(UMOCK_C_ERROR_CODE, error_code));
}
BEGIN_TEST_SUITE(gballoc_ll_mimalloc_ut)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(TestClassInitialize)
{
@ -217,4 +217,4 @@ TEST_FUNCTION(gballoc_ll_size_calls_mi_usable_size)
ASSERT_ARE_EQUAL(size_t, 32, size);
}
END_TEST_SUITE(gballoc_ll_mimalloc_ut)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(gballoc_ll_mimalloc_ut, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -16,7 +16,7 @@ static TEST_MUTEX_HANDLE g_testByTest;
#include "c_pal/gballoc_ll.h"
BEGIN_TEST_SUITE(gballoc_ll_passthrough_int)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(TestClassInitialize)
{
@ -161,4 +161,4 @@ TEST_FUNCTION(gballoc_ll_size_works)
}
END_TEST_SUITE(gballoc_ll_passthrough_int)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(gballoc_ll_passthrough_int, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -43,7 +43,7 @@ static void on_umock_c_error(UMOCK_C_ERROR_CODE error_code)
ASSERT_FAIL("umock_c reported error :%" PRI_MU_ENUM "", MU_ENUM_VALUE(UMOCK_C_ERROR_CODE, error_code));
}
BEGIN_TEST_SUITE(gballoc_ll_passthrough_ut)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(TestClassInitialize)
{
@ -212,4 +212,4 @@ TEST_FUNCTION(gballoc_ll_size_returns)
ASSERT_ARE_EQUAL(size_t, 32, size);
}
END_TEST_SUITE(gballoc_ll_passthrough_ut)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(gballoc_ll_passthrough_ut, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -16,7 +16,7 @@ static TEST_MUTEX_HANDLE g_testByTest;
#include "c_pal/gballoc_ll.h"
BEGIN_TEST_SUITE(gballoc_ll_win32heap_int)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(TestClassInitialize)
{
@ -169,4 +169,4 @@ TEST_FUNCTION(gballoc_ll_size_works)
}
END_TEST_SUITE(gballoc_ll_win32heap_int)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(gballoc_ll_win32heap_int, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -83,7 +83,7 @@ static void TEST_gballoc_ll_init(void)
ASSERT_ARE_EQUAL(char_ptr, umock_c_get_expected_calls(), umock_c_get_actual_calls());
}
BEGIN_TEST_SUITE(gballoc_ll_win32heap_ut)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(TestClassInitialize)
{
@ -475,4 +475,4 @@ TEST_FUNCTION(gballoc_ll_size_returns_what_HeapSize_returned_when_it_fails)
///clean
}
END_TEST_SUITE(gballoc_ll_win32heap_ut)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(gballoc_ll_win32heap_ut, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -40,7 +40,7 @@ extern "C"
}
#endif
BEGIN_TEST_SUITE(interlocked_win32_unittests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -738,4 +738,4 @@ TEST_FUNCTION(interlocked_xor_8_calls_InterlockedXor8)
ASSERT_ARE_EQUAL(uint8_t, 0xF0, return_val, "Return value is incorrect.");
}
END_TEST_SUITE(interlocked_win32_unittests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(interlocked_win32_unittests, failedTestCount);
return (int)failedTestCount;
}

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(pipe_win32_unittests, failedTestCount);
return (int)failedTestCount;
}

Просмотреть файл

@ -50,7 +50,7 @@ extern "C"
static FILE* test_file_handle = (FILE*)0x1001;
BEGIN_TEST_SUITE(pipe_win32_unittests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -218,4 +218,4 @@ TEST_FUNCTION(pipe_pclose_fails_when_close_fails)
ASSERT_ARE_EQUAL(char_ptr, umock_c_get_expected_calls(), umock_c_get_actual_calls());
}
END_TEST_SUITE(pipe_win32_unittests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(platform_win32_ut, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -54,7 +54,7 @@ static void on_umock_c_error(UMOCK_C_ERROR_CODE error_code)
ASSERT_FAIL("umock_c reported error :%" PRI_MU_ENUM "", MU_ENUM_VALUE(UMOCK_C_ERROR_CODE, error_code));
}
BEGIN_TEST_SUITE(platform_win32_ut)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -144,4 +144,4 @@ TEST_FUNCTION(platform_deinit_success)
// cleanup
}
END_TEST_SUITE(platform_win32_ut)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(reals_win32_ut, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -34,7 +34,7 @@
#include "real_lazy_init.h"
#include "real_sync.h"
BEGIN_TEST_SUITE(reals_win32_ut)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
// this test makes sure that the mappings work
// (there is a real_ function corresponding to the original)
@ -58,4 +58,4 @@ TEST_FUNCTION(check_all_c_pal_reals)
// no explicit assert, if it builds it works
}
END_TEST_SUITE(reals_win32_ut)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(srw_lock_unittests, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -116,7 +116,7 @@ static void TEST_srw_lock_acquire_exclusive(SRW_LOCK_HANDLE handle, double prete
umock_c_reset_all_calls();
}
BEGIN_TEST_SUITE(srw_lock_unittests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -739,4 +739,4 @@ TEST_FUNCTION(srw_lock_release_shared_succeeds)
srw_lock_destroy(bsdlLock);
}
END_TEST_SUITE(srw_lock_unittests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,11 +0,0 @@
// Copyright(C) Microsoft Corporation.All rights reserved.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(string_utils_int_tests, failedTestCount);
return failedTestCount;
}

Просмотреть файл

@ -19,7 +19,7 @@
#include "c_pal/string_utils.h"
BEGIN_TEST_SUITE(string_utils_int_tests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -318,4 +318,4 @@ TEST_FUNCTION(vsprintf_wchar_with_a_non_empty_string_succeeds)
free(result);
}
END_TEST_SUITE(string_utils_int_tests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Просмотреть файл

@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stddef.h>
#include "testrunnerswitcher.h"
int main(void)
{
size_t failedTestCount = 0;
RUN_TEST_SUITE(sync_win32_unittests, failedTestCount);
return (int)failedTestCount;
}

Просмотреть файл

@ -45,7 +45,7 @@ extern "C"
#include "c_pal/sync.h"
BEGIN_TEST_SUITE(sync_win32_unittests)
BEGIN_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)
TEST_SUITE_INITIALIZE(suite_init)
{
@ -153,4 +153,4 @@ TEST_FUNCTION(wake_by_address_single_calls_WakeByAddressSingle)
///assert
ASSERT_ARE_EQUAL(char_ptr, umock_c_get_expected_calls(), umock_c_get_actual_calls(), "Actual calls differ from expected calls");
}
END_TEST_SUITE(sync_win32_unittests)
END_TEST_SUITE(TEST_SUITE_NAME_FROM_CMAKE)

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше