fix:Werror开启告警清理
清理Werror开启产生的告警 close:#I68YDW Signed-off-by: liuwenxin <liuwenxin11@huawei.com>
This commit is contained in:
@@ -95,7 +95,8 @@ LITE_TEST_CASE(PosixSysFuncTestSuite, testOsSysStrerror001, Function | MediumTes
|
||||
LOG("strerror(10) = %s\n", strerror(10));
|
||||
TEST_ASSERT_EQUAL_STRING("No children", strerror(10));
|
||||
#endif
|
||||
|
||||
|
||||
return LOS_OK;
|
||||
};
|
||||
|
||||
RUN_TEST_SUITE(PosixSysFuncTestSuite);
|
||||
|
||||
@@ -85,6 +85,7 @@ extern void PosixIslowerFuncTest(void);
|
||||
extern void PosixIsxdigitFuncTest(void);
|
||||
extern void PosixTolowerFuncTest(void);
|
||||
extern void PosixToupperFuncTest(void);
|
||||
extern void ItSuitePosixMqueue(void);
|
||||
|
||||
extern void PosixStrerrorTest(void);
|
||||
|
||||
|
||||
@@ -91,12 +91,12 @@ LITE_TEST_CASE(PosixStdlibAtollTest, testStdlibAtoll001, Function | MediumTest |
|
||||
LITE_TEST_CASE(PosixStdlibAtollTest, testStdlibAtoll002, Function | MediumTest | Level1)
|
||||
{
|
||||
long long value = atoll("-9223372036854775808");
|
||||
if (value == -9223372036854775808LL) {
|
||||
if (value == -9223372036854775808ULL) {
|
||||
LOG("[DEMO] posix stdlib test case 2:atoll(%lld) ok.\n", value);
|
||||
} else {
|
||||
LOG("[DEMO] posix stdlib test case 2:atoll(%lld) fail.\n", value);
|
||||
}
|
||||
TEST_ASSERT_TRUE(value == -9223372036854775808LL);
|
||||
TEST_ASSERT_TRUE(value == -9223372036854775808ULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ LITE_TEST_CASE(PosixStdlibAtollTest, testStdlibAtoll003, Function | MediumTest |
|
||||
LITE_TEST_CASE(PosixStdlibAtollTest, testStdlibAtoll004, Function | MediumTest | Level1)
|
||||
{
|
||||
long long value = atoll("9223372036854775808");
|
||||
if (value == -9223372036854775808LL) {
|
||||
if (value == -9223372036854775808ULL) {
|
||||
LOG("[DEMO] posix stdlib test case 4(except):atoll(%lld) != 9223372036854775808 ok.\n", value);
|
||||
} else {
|
||||
LOG("[DEMO] posix stdlib test case 4(except):atoll(%lld) fail.\n", value);
|
||||
|
||||
@@ -29,6 +29,8 @@
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include "posix_test.h"
|
||||
#include "los_config.h"
|
||||
#include "kernel_test.h"
|
||||
|
||||
@@ -29,6 +29,8 @@
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include "ohos_types.h"
|
||||
#include "posix_test.h"
|
||||
#include "los_config.h"
|
||||
|
||||
@@ -30,6 +30,9 @@
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#undef _XOPEN_SOURCE
|
||||
#define _XOPEN_SOURCE 600
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <sys/times.h>
|
||||
#include <time.h>
|
||||
|
||||
Reference in New Issue
Block a user