dlns_test.h 2.2 KB
Newer Older
W
wangjiahui 已提交
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
/**
 * Copyright (c) 2022 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef LIBC_TEST_SRC_FUNCTIONALEXT_DLNS_DLNS_TEST_H
#define LIBC_TEST_SRC_FUNCTIONALEXT_DLNS_DLNS_TEST_H

static const char* path = "/data/tests/libc-test/src/functionalext/dlns";
static const char* dllName = "libdlopen_ns_dso.so";
static const char* dllNamePath = "/data/tests/libc-test/src/functionalext/dlns/libdlopen_ns_dso.so";
static const char* errdllNamePath = "/etc/test/libdlopen_ns_dso.so";
static const char* dllName2 = "libdlopen_dso.so";
static const char* dllNamePath2 = "/data/tests/libc-test/src/functionalext/dlns/libdlopen_dso.so";
static const char* errPath_ns = "src/test";

static const char* sharedLib = "sharedlibtest.so";
G
ganlan 已提交
28
static const char* pathA = "/data/tests/libc-test/src/functionalext/dlns/A";
W
wangjiahui 已提交
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
static const char* pathB = "/data/tests/libc-test/src/functionalext/dlns/B";
static const char* pathC = "/data/tests/libc-test/src/functionalext/dlns/C";
static const char* pathD = "/data/tests/libc-test/src/functionalext/dlns/D";

static const char* libB = "libB.so";
static const char* libC = "libC.so";
static const char* libD = "libD.so";

static const char* dllName_sep_009 = "separated_0900.so";
static const char* dllName_set_002 = "set_lib_path_0200.so";
static const char* dllName_inh_003 = "inherit_0300.so";
static const char* dllName_inh_007 = "inherit_0700.so";
static const char* dllName_inh_008 = "inherit_0800.so";
static const char* dllName_inh_011 = "inherit_1100.so";

typedef void(*TEST_FUN)(void);

static const int EOK = 0;
G
ganlan 已提交
47 48 49 50 51

static const int test_result_1 = 1;
static const int test_result_2 = 2;
static const int test_result_3 = 3;
static const int test_result_4 = 4;
W
wangjiahui 已提交
52
#endif