From 8fff50f59f113c02d522d41e77424b4fda7e12a3 Mon Sep 17 00:00:00 2001 From: yinjiaming Date: Wed, 19 Oct 2022 16:48:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20newlibc=20=E7=BC=96=E8=AF=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BF=AE=E6=AD=A3=20=E3=80=90=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E3=80=91=20=E4=BD=BF=E7=94=A8newlibc=20=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E6=97=B6=E4=BC=9A=E6=9C=89?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 【修改方案】 删去了 newlibc 中没有的宏定义 【影响】 对现有的产品编译不会有影响。 Signed-off-by: yinjiaming Change-Id: Id753640253e1b297654b3e523ddd5ca0abdca698 --- testsuites/sample/posix/pthread/It_posix_pthread_004.c | 2 +- testsuites/sample/posix/pthread/It_posix_pthread_006.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/testsuites/sample/posix/pthread/It_posix_pthread_004.c b/testsuites/sample/posix/pthread/It_posix_pthread_004.c index 0257c272..d852ad61 100644 --- a/testsuites/sample/posix/pthread/It_posix_pthread_004.c +++ b/testsuites/sample/posix/pthread/It_posix_pthread_004.c @@ -42,7 +42,7 @@ static UINT32 Testcase(VOID) ret = pthread_attr_setdetachstate(NULL, PTHREAD_CREATE_DETACHED); ICUNIT_GOTO_EQUAL(ret, EINVAL, ret, EXIT); - ret = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE - 1); + ret = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE - 2); ICUNIT_GOTO_EQUAL(ret, EINVAL, ret, EXIT); ret = pthread_attr_setdetachstate(&attr, 3); // 3, test the param of function. diff --git a/testsuites/sample/posix/pthread/It_posix_pthread_006.c b/testsuites/sample/posix/pthread/It_posix_pthread_006.c index 7c658bbb..7149a338 100644 --- a/testsuites/sample/posix/pthread/It_posix_pthread_006.c +++ b/testsuites/sample/posix/pthread/It_posix_pthread_006.c @@ -47,9 +47,9 @@ static UINT32 Testcase(VOID) ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); rc = pthread_cond_destroy(&cond1); - ICUNIT_GOTO_EQUAL(rc, ENOERR, rc, EXIT); + ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); rc = pthread_cond_destroy(&cond2); - ICUNIT_GOTO_EQUAL(rc, ENOERR, rc, EXIT); + ICUNIT_GOTO_EQUAL(rc, 0, rc, EXIT); return LOS_OK; EXIT: