blob: f73d6fd388bac27beac7e5d8037aee5fd3af7e50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright 2025-2026, Amlal El Mahrouss (amlal@nekernel.org)
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// Official repository: https://github.com/ne-foss-org/nectar
/// @author Amlal El Mahrouss
#include <CompilerKit/Detail/Config.h>
#include <gtest/gtest.h>
CK_IMPORT_C Int32 DynamicLinker64MachO(Int32 argc, char** argv);
static Int32 kArgc{};
static char** kArgv{};
Int32 main(Int32 argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
kArgc = argc;
kArgv = argv;
return RUN_ALL_TESTS();
}
TEST(LinkerRunMachO, LinkerExitsCorrectly) {
EXPECT_TRUE(kArgc > 1);
EXPECT_TRUE(DynamicLinker64MachO(kArgc, kArgv) == 0);
}
|