1/* 2 * Copyright (c) 2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import { beforeEach, describe, expect, it } from '@ohos/hypium' 17import Utils from './Utils' 18import If from 'libifndk.so' 19import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; 20import fs from '@ohos.file.fs' 21 22export default function muslIfNdkTest() { 23 describe('MuslIfTest', () => { 24 25 beforeEach(async () => { 26 await Utils.sleep(50) 27 }) 28 29 /** 30 * @tc.number : SUB_THIRDPARTY_MUSL_IF_IF_FREENAMEINDEX_0100 31 * @tc.name : testMuslIf_If_Freenameindex001 32 * @tc.desc : test if_freenameindex 33 * @tc.size : MediumTest 34 * @tc.type : Function 35 * @tc.level : Level 1 36 */ 37 it('testMuslIf_If_Freenameindex001', 0, async (done: Function) => { 38 let result: number = If.ifFreeNameIndex(); 39 expect(result).assertEqual(0) 40 done() 41 }); 42 43 /** 44 * @tc.number : SUB_THIRDPARTY_MUSL_IF_IF_NAMEINDEX_0100 45 * @tc.name : testMuslIf_If_Nameindex001 46 * @tc.desc : test if_nameindex 47 * @tc.size : MediumTest 48 * @tc.type : Function 49 * @tc.level : Level 1 50 */ 51 it('testMuslIf_If_Nameindex001', 0, async (done: Function) => { 52 let result: number = If.ifNameIndex(); 53 expect(result).assertEqual(0) 54 done() 55 }); 56 }) 57}