Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 668) sorted by relevance

12345678910>>...27

/test/xts/dcts/communication/softbus_standard/transmission/sendmsg/
Dtrans_func_test.cpp47 int ret = RegisterDeviceStateDefCallback(); in SetUpTestCase() local
48 EXPECT_EQ(SOFTBUS_OK, ret) << "call reg node state callback fail"; in SetUpTestCase()
49 ret = CheckRemoteDeviceIsNull(BOOL_TRUE); in SetUpTestCase()
50 ASSERT_EQ(SOFTBUS_OK, ret) << "get node fail,please check network"; in SetUpTestCase()
57 int ret = UnRegisterDeviceStateDefCallback(); in TearDownTestCase() local
58 EXPECT_EQ(SOFTBUS_OK, ret) << "call unReg node state callback fail"; in TearDownTestCase()
72 int ret; variable
73 ret = CreateSsAndOpenSession4Data();
74 ASSERT_EQ(SOFTBUS_OK, ret) << "create Ss and openS[data] fail";
77 ret = SendData4Data(DATA_TYPE_BYTE, size);
[all …]
/test/xts/acts/kernel_lite/io_posix/src/
DIoTestSprintf.cpp31 int ret = sprintf(str, "%d", -2147483648); variable
32 EXPECT_EQ(ret, 11) << "> sprintf fail, errno = " << errno;
35 ret = sprintf(str, "%d", 2147483647);
36 EXPECT_EQ(ret, 10) << "> sprintf fail, errno = " << errno;
39 ret = sprintf(str, "%i", -2147483648);
40 EXPECT_EQ(ret, 11) << "> sprintf fail, errno = " << errno;
43 ret = sprintf(str, "%i", 2147483647);
44 EXPECT_EQ(ret, 10) << "> sprintf fail, errno = " << errno;
47 ret = sprintf(str, "%u", 0);
48 EXPECT_EQ(ret, 1) << "> sprintf fail, errno = " << errno;
[all …]
DIoTestSscanf.cpp30 int ret = sscanf("1.196532544", "%f", &f); variable
31 EXPECT_EQ(ret, 1) << "> sscanf fail, errno = " << errno;
35 ret = sscanf("1.196532544", "%Lf", &f1);
36 EXPECT_EQ(ret, 1) << "> sscanf fail, errno = " << errno;
39 ret = sscanf("1.66666", "%6f", &f);
40 EXPECT_EQ(ret, 1) << "> sscanf fail, errno = " << errno;
43 ret = sscanf("1.66666", "%8f", &f);
44 EXPECT_EQ(ret, 1) << "> sscanf fail, errno = " << errno;
57 int ret = sscanf("1.100000e+00", "%e", &f); variable
58 EXPECT_EQ(ret, 1) << "> sscanf fail, errno = " << errno;
[all …]
DIoTestString.cpp28 int ret = strverscmp("hello world !", "HELLO WORLD"); variable
29 EXPECT_GT(ret, 0);
31 ret = strverscmp("HELLO WORLD", "hello world !");
32 EXPECT_LT(ret, 0);
34 ret = strverscmp("hello world !", "hello world !");
35 EXPECT_EQ(ret, 0);
45 int ret = strcoll("AbC", "ABC"); variable
46 EXPECT_GT(ret, 0);
48 ret = strcoll("ABC", "abc");
49 EXPECT_LT(ret, 0);
[all …]
DIoTestStdlib.cpp33 char *ret = gcvt(999, 3, str); variable
34 EXPECT_STREQ(ret, str);
37 ret = gcvt(-99.456, 5, str);
38 EXPECT_STREQ(ret, str);
41 ret = gcvt(0.968e8, 8, str);
42 EXPECT_STREQ(ret, str);
54 char *ret = fcvt(123.456, 5, &decpt, &sign); variable
55 EXPECT_STREQ(ret, "12345600");
59 ret = fcvt(-7.89e13, 12, &decpt, &sign);
60 EXPECT_STREQ(ret, "789000000000000");
[all …]
DIoTestStrings.cpp29 int ret; variable
31 ret = ffsl(1 << i);
32 EXPECT_EQ(ret, i + 1);
35 ret = ffsl(26);
36 EXPECT_EQ(ret, 2);
38 ret = ffsl(0);
39 EXPECT_EQ(ret, 0);
49 int ret = strncasecmp("abcdefg", "abcdEFg", 7); variable
50 EXPECT_EQ(ret, 0);
52 ret = strncasecmp("abcdefg", "abcdEF", 7);
[all …]
/test/xts/dcts/distributedhardware/distributedscreentest/
Ddsreen_automat_test.cpp88 int ret = StartMirror(0); variable
89 EXPECT_EQ(g_dSreenOk, ret) << "StartMirror fail";
102 int ret = StopMirror(0); variable
103 EXPECT_EQ(g_dSreenOk, ret) << "StopMirror fail";
116 int ret = StartExpand(0); variable
117 EXPECT_EQ(g_dSreenOk, ret) << "StartExpand fail";
130 int ret = StopExpand(0); variable
131 EXPECT_EQ(g_dSreenOk, ret) << "StopExpand fail";
144 int ret = CreateWindow(0); variable
145 EXPECT_EQ(g_dSreenOk, ret) << "CreateWindow fail";
[all …]
/test/xts/hats/hdf/hdf_lite/display/
Dhdi_display_test.cpp36 int32_t ret; in SetUpTestCase() local
37 ret = DisplayInit(); in SetUpTestCase()
38 if (ret != DISPLAY_SUCCESS) { in SetUpTestCase()
48 int32_t ret; in TearDownTestCase() local
50 ret = DisplayUninit(); in TearDownTestCase()
51 if (ret != DISPLAY_SUCCESS) { in TearDownTestCase()
65 int32_t ret; variable
67 ret = InitDisplayTest();
68 if (ret != DISPLAY_SUCCESS) {
72 EXPECT_EQ(0, ret);
[all …]
/test/xts/acts/multimedia_lite/media_lite_posix/player_native/src/
DActsMediaPlayerVideoTest.cpp68 int32_t ret = g_tagTestSample.adaptr->SetSource(source); in CreateAndSetSource() local
70 return ret; in CreateAndSetSource()
80 int32_t ret = FileCheck(g_avFileName); in HWTEST_F() local
81 EXPECT_EQ(HI_SUCCESS, ret); in HWTEST_F()
82 ret = CreateAndSetSource(); in HWTEST_F()
83 EXPECT_EQ(HI_SUCCESS, ret); in HWTEST_F()
84 ret = g_tagTestSample.adaptr->Prepare(); in HWTEST_F()
85 EXPECT_EQ(HI_SUCCESS, ret); in HWTEST_F()
86 ret = g_tagTestSample.adaptr->SetVideoSurface(g_surface); in HWTEST_F()
87 EXPECT_EQ(HI_SUCCESS, ret); in HWTEST_F()
[all …]
/test/xts/dcts/distributedhardware/distributedcameratest/
Ddcamera_automat_test.cpp38 int32_t ret = mainDemo->InitSensors(); in SetUpTestCase() local
39 if (ret == camoreError) { in SetUpTestCase()
44 ret = mainDemo->InitCameraDevice(); in SetUpTestCase()
45 if (ret == camoreError) { in SetUpTestCase()
71 int32_t ret = PreviewOn(0, mainDemo); variable
72 EXPECT_EQ(cameraOk, ret) << "PreviewOn fail";
86 int32_t ret = CaptureTest(mainDemo); variable
87 EXPECT_EQ(cameraOk, ret) << "CaptureTest fail";
101 int32_t ret = VideoTest(mainDemo); variable
102 EXPECT_EQ(cameraOk, ret) << "VideoTest fail";
[all …]
/test/xts/hats/kernel/rtginterface/
Drtg_interface_test.cpp57 bool ret = EnableRtg(true); in SetUp() local
58 EXPECT_EQ(ret, false); in SetUp()
64 bool ret = EnableRtg(false); in TearDown() local
65 EXPECT_EQ(ret, false); in TearDown()
75 int ret; variable
79 ret = DestroyRtgGrp(grpId);
80 EXPECT_EQ(ret, 0);
90 int ret; variable
91 ret = DestroyRtgGrp(-1);
92 EXPECT_NE(ret, 0);
[all …]
/test/xts/dcts/communication/softbus_standard/transmission/reliability/
Dtrans_reliability_test.cpp47 int ret = RegisterDeviceStateDefCallback(); in SetUpTestCase() local
48 EXPECT_EQ(SOFTBUS_OK, ret) << "call reg node state callback fail"; in SetUpTestCase()
50 ret = CheckRemoteDeviceIsNull(BOOL_TRUE); in SetUpTestCase()
51 ASSERT_EQ(SOFTBUS_OK, ret) << "get node fail,please check network"; in SetUpTestCase()
58 int ret = UnRegisterDeviceStateDefCallback(); in TearDownTestCase() local
59 EXPECT_EQ(SOFTBUS_OK, ret) << "call unReg node state callback fail"; in TearDownTestCase()
73 int ret; variable
76 ret = SendBytes(sessionId, data.c_str(), data.length());
77 EXPECT_EQ(SOFTBUS_TRANS_INVALID_SESSION_ID, ret);
89 int ret; variable
[all …]
/test/xts/acts/kernel_lite/math_posix/src/
DMathComplexApiTest.cpp35 int ret = TestCabs(); variable
36 ASSERT_EQ(ret, 0);
44 int ret = TestCabsf(); variable
45 ASSERT_EQ(ret, 0);
54 int ret = TestCabsl(); variable
55 ASSERT_EQ(ret, 0);
64 int ret = TestCacos(); variable
65 ASSERT_EQ(ret, 0);
74 int ret = TestCacosf(); variable
75 ASSERT_EQ(ret, 0);
[all …]
/test/xts/acts/distributeddatamgr_lite/kv_store_posix/src/
DKvStoreTest.cpp39 int ret = mkdir("/storage/com.openharmony.kv", S_IRUSR | S_IWUSR); in SetUpTestCase() local
40 printf("/storage/com.openharmony.kv ret = %d\n", ret); in SetUpTestCase()
41 ret = UtilsSetEnv("/storage/com.openharmony.kv"); in SetUpTestCase()
42 EXPECT_EQ(ret, 0); in SetUpTestCase()
47 int ret = rmdir("/storage/com.openharmony.kv/kvstore"); in TearDownTestCase() local
48 printf("/storage/com.openharmony.kv/kvstore ret = %d\n", ret); in TearDownTestCase()
49 ret = rmdir("/storage/com.openharmony.kv"); in TearDownTestCase()
50 printf("/storage/com.openharmony.kv ret = %d\n", ret); in TearDownTestCase()
66 int ret = 0; in TouchKVFiles() local
82 ret = UtilsSetValue(keytemp, valuetemp); in TouchKVFiles()
[all …]
/test/xts/acts/security_lite/permission_posix/pms/src/
DActsPMSDeleteTest.cpp98 int ret = SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL); variable
99 EXPECT_EQ(ret, PERM_ERRORCODE_SUCCESS) << "save ret = " << ret << endl;
100 ret = DeletePermissions(TEST_APP_ID);
101 EXPECT_EQ(ret, PERM_ERRORCODE_SUCCESS) << "delete ret = " << ret << endl;
112 int ret = DeletePermissions(TEST_APP_ID); variable
113 EXPECT_EQ(ret, PERM_ERRORCODE_SUCCESS) << "delete ret = " << ret << endl;
114 ret = SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
115 EXPECT_EQ(ret, PERM_ERRORCODE_SUCCESS) << "save ret = " << ret << endl;
116 ret = DeletePermissions(TEST_APP_ID);
117 EXPECT_EQ(ret, PERM_ERRORCODE_SUCCESS) << "delete ret = " << ret << endl;
[all …]
/test/xts/hats/hdf/wlan/wifi/hal/
Dwifi_hal_test.cpp51 int ret; in SetUpTestCase() local
53 ret = WifiConstruct(&g_wifi); in SetUpTestCase()
54 ASSERT_EQ(HDF_SUCCESS, ret); in SetUpTestCase()
59 int ret; in TearDownTestCase() local
61 ret = WifiDestruct(&g_wifi); in TearDownTestCase()
62 ASSERT_EQ(HDF_SUCCESS, ret); in TearDownTestCase()
67 int ret; in SetUp() local
69 ret = g_wifi->start(nullptr); in SetUp()
70 ASSERT_EQ(HDF_ERR_INVALID_PARAM, ret); in SetUp()
71 ret = g_wifi->start(g_wifi); in SetUp()
[all …]
/test/xts/acts/security_lite/huks/common/
Dhks_test_curve25519.c37 int32_t ret = HksInitParamSet(&paramSet); in TestGenerateEd25519Key() local
38 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key()
42 ret = HksAddParams(paramSet, &algParam, 1); in TestGenerateEd25519Key()
43 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key()
47 ret = HksAddParams(paramSet, &keySizeParam, 1); in TestGenerateEd25519Key()
48 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key()
52 ret = HksAddParams(paramSet, &purposeParam, 1); in TestGenerateEd25519Key()
53 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key()
57 ret = HksAddParams(paramSet, &digestParam, 1); in TestGenerateEd25519Key()
58 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key()
[all …]
/test/xts/acts/distributeddatamgr_lite/kv_store_hal/src/
Dkvstore_func_test.c66 int ret; in SetKVFiles() local
82 ret = UtilsSetValue(keytemp, valuetemp); in SetKVFiles()
84 TEST_ASSERT_EQUAL_INT(0, ret); in SetKVFiles()
86 TEST_ASSERT_EQUAL_INT(-1, ret); in SetKVFiles()
88 ret = UtilsGetValue(keytemp, temp, MAX_VALUE_LEN_TEST); in SetKVFiles()
91 TEST_ASSERT_EQUAL_INT(0, ret); in SetKVFiles()
93 TEST_ASSERT_GREATER_THAN_INT(0, ret); in SetKVFiles()
97 TEST_ASSERT_EQUAL_INT(-1, ret); in SetKVFiles()
112 int ret; in ReadKVFiles() local
129 ret = UtilsGetValue(keytemp, temp, MAX_VALUE_LEN_TEST); in ReadKVFiles()
[all …]
/test/xts/hats/hdf/input/hdi_input/common/
Dhdi_input_test.cpp52 int32_t ret; in SetUpTestCase() local
53ret = memset_s(g_allDev, MAX_DEVICES * sizeof(InputDevDesc), 0, MAX_DEVICES * sizeof(InputDevDesc)… in SetUpTestCase()
54 if (ret != 0) { in SetUpTestCase()
58 ret = GetInputInterface(&g_inputInterface); in SetUpTestCase()
59 if (ret != INPUT_SUCCESS) { in SetUpTestCase()
60 HDF_LOGE("%s: get input hdi failed, ret %d \n", __func__, ret); in SetUpTestCase()
65 ret = g_inputInterface->iInputManager->ScanInputDevice(g_allDev, MAX_DEVICES); in SetUpTestCase()
66 if (ret) { in SetUpTestCase()
67 HDF_LOGE("%s: scan device failed, ret %d \n", __func__, ret); in SetUpTestCase()
110 int32_t ret; in ReportHotPlugEventPkgCallback() local
[all …]
/test/xts/dcts/communication/softbus_standard/transmission/sendfile/
Dtrans_file_func_test.cpp94 int ret = SetFileSendListener(DEF_PKG_NAME, SESSION_NAME_FILE, GetSendFileListener()); in SetUp() local
95 EXPECT_EQ(SOFTBUS_OK, ret) << "call SetFileSendListener fail"; in SetUp()
96ret = SetFileReceiveListener(DEF_PKG_NAME, SESSION_NAME_FILE, GetRecvFileListener(), RECV_FILE_PAT… in SetUp()
97 EXPECT_EQ(SOFTBUS_OK, ret) << "call SetFileSendListener fail"; in SetUp()
110 int ret = RegisterDeviceStateDefCallback(); in SetUpTestCase() local
111 EXPECT_EQ(SOFTBUS_OK, ret) << "call reg node state callback fail"; in SetUpTestCase()
113 ret = CheckRemoteDeviceIsNull(BOOL_TRUE); in SetUpTestCase()
114 ASSERT_EQ(SOFTBUS_OK, ret) << "get node fail,please check network"; in SetUpTestCase()
130 int ret = UnRegisterDeviceStateDefCallback(); in TearDownTestCase() local
131 EXPECT_EQ(SOFTBUS_OK, ret) << "call unReg node state callback fail"; in TearDownTestCase()
[all …]
/test/xts/acts/startup_lite/syspara_hal/src/
Dparameter_func_test.c66 int ret; variable
70 ret = SetParameter(key, value);
71 TEST_ASSERT_EQUAL_INT(0, ret);
82 int ret; variable
86 ret = SetParameter(key, value);
87 TEST_ASSERT_EQUAL_INT(-9, ret);
99 int ret; variable
103 ret = SetParameter(key, value);
104 TEST_ASSERT_EQUAL_INT(0, ret);
115 int ret; variable
[all …]
/test/xts/device_attest/services/core/attest/
Dattest_service.c42 int32_t ret; in GetAuthResultCode() local
45 ret = g_authResultCode; in GetAuthResultCode()
47 return ret; in GetAuthResultCode()
61 int32_t ret = ATTEST_OK; in ResetDevice() local
67 ret = GetChallenge(&challenge, ATTEST_ACTION_RESET); in ResetDevice()
68 if (ret != ATTEST_OK) { in ResetDevice()
69 ATTEST_LOG_ERROR("[ResetDevice] Get challenge failed, ret = %d.", ret); in ResetDevice()
73 ret = GenResetMsg(challenge, &reqMsg); in ResetDevice()
74 if (ret != ATTEST_OK) { in ResetDevice()
75 ATTEST_LOG_ERROR("[ResetDevice] Generate reset request message failed, ret = %d.", ret); in ResetDevice()
[all …]
/test/xts/hats/hdf/usb/functionTest/common/
Dusbd_function_test.cpp47 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in SetUpTestCase() local
49 HDF_LOGI("UsbdFunctionTest::[Device] %{public}d SetPortRole=%{public}d", __LINE__, ret); in SetUpTestCase()
50 ASSERT_EQ(0, ret); in SetUpTestCase()
51 if (ret != 0) { in SetUpTestCase()
72 auto ret = g_usbInterface->GetCurrentFunctions(funcs); variable
73 HDF_LOGI("UsbdFunctionTest::SUB_USB_HDI_1250 %{public}d ret=%{public}d", __LINE__, ret);
74 ASSERT_EQ(0, ret);
86 auto ret = g_usbInterface->SetCurrentFunctions(USB_FUNCTION_ACM); variable
87 …OGI("UsbdFunctionTest::SUB_USB_HDI_1270 %{public}d SetCurrentFunctions=%{public}d", __LINE__, ret);
88 ASSERT_EQ(0, ret);
[all …]
/test/xts/acts/update_lite/dupdate_hal/src/
Dota_func_test.c63 unsigned int ret; variable
64 ret = HotaInit(ERRORCALLBACK, STATUSCALLBACK);
65 printf("HotaInit return = %d\r\n", ret);
66 TEST_ASSERT_EQUAL_INT(OHOS_SUCCESS, ret);
76 unsigned int ret; variable
77 ret = HotaSetPackageType(USE_HOS_PKG);
78 printf("use package flag = %d\r\n, return = %d\r\n", USE_HOS_PKG, ret);
79 TEST_ASSERT_EQUAL_INT(OHOS_SUCCESS, ret);
80 ret = HotaSetPackageType(NOT_HOS_PKG);
81 printf("use package flag = %d\r\n, return = %d\r\n", NOT_HOS_PKG, ret);
[all …]
/test/xts/device_attest_lite/services/core/attest/
Dattest_service.c42 int32_t ret; in GetAuthResultCode() local
45 ret = g_authResultCode; in GetAuthResultCode()
47 return ret; in GetAuthResultCode()
61 int32_t ret = 0; in ConnectWiseDevice() local
67 ret = D2CConnect(); in ConnectWiseDevice()
68 if (ret == ATTEST_OK) { in ConnectWiseDevice()
73 return ret; in ConnectWiseDevice()
89 int32_t ret = ATTEST_OK; in ResetDevice() local
95 ret = GetChallenge(&challenge, ATTEST_ACTION_RESET); in ResetDevice()
96 if (ret != ATTEST_OK) { in ResetDevice()
[all …]

12345678910>>...27