|
Last change
on this file since d7f7a4a was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 4 years ago |
|
Replace some license headers with SPDX identifier
Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.
|
-
Property mode
set to
100644
|
|
File size:
513 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * SPDX-FileCopyrightText: 2014 Vojtech Horky
|
|---|
| 3 | *
|
|---|
| 4 | * SPDX-License-Identifier: BSD-3-Clause
|
|---|
| 5 | */
|
|---|
| 6 |
|
|---|
| 7 | #include <pcut/pcut.h>
|
|---|
| 8 | #include "tested.h"
|
|---|
| 9 |
|
|---|
| 10 | PCUT_INIT
|
|---|
| 11 |
|
|---|
| 12 | static char *argv_patched[] = {
|
|---|
| 13 | NULL, /* Will be patched at run-time. */
|
|---|
| 14 | (char *) "-l",
|
|---|
| 15 | NULL
|
|---|
| 16 | };
|
|---|
| 17 |
|
|---|
| 18 | static void pre_init_hook(int *argc, char **argv[]) {
|
|---|
| 19 | argv_patched[0] = (*argv)[0];
|
|---|
| 20 | *argc = 2;
|
|---|
| 21 | *argv = argv_patched;
|
|---|
| 22 | }
|
|---|
| 23 |
|
|---|
| 24 | PCUT_TEST(unreachable) {
|
|---|
| 25 | PCUT_ASSERT_TRUE(0 && "unreachable code");
|
|---|
| 26 | }
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 | PCUT_CUSTOM_MAIN(
|
|---|
| 30 | PCUT_MAIN_SET_PREINIT_HOOK(pre_init_hook)
|
|---|
| 31 | )
|
|---|
| 32 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.