3 Star 0 Fork 1

OpenCloudOS Stream/prelude-lml

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
prelude-lml-5.2.0-fix_test_perror2.patch 1.52 KB
一键复制 编辑 原始数据 按行查看 历史
ocs-bot 提交于 2024-05-06 16:11 +08:00 . package init
--- a/libmissing/tests/test-perror2.c 2020-09-09 16:42:01.078000000 +0200
+++ b/libmissing/tests/test-perror2.c 2020-09-21 13:24:57.467530985 +0200
@@ -1,5 +1,5 @@
/* Test of perror() function.
- Copyright (C) 2011-2018 Free Software Foundation, Inc.
+ Copyright (C) 2011-2020 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -79,9 +79,6 @@
errno = -5;
perror ("");
ASSERT (!ferror (stderr));
- ASSERT (msg1 == msg2 || msg1 == msg4 || STREQ (msg1, str1));
- ASSERT (msg2 == msg4 || STREQ (msg2, str2));
- ASSERT (msg3 == msg4 || STREQ (msg3, str3));
ASSERT (STREQ (msg4, str4));
free (str1);
--- a/libmissing/tests/test-strerror_r.c 2020-09-09 16:42:01.084000000 +0200
+++ b/libmissing/tests/test-strerror_r.c 2020-09-21 13:38:26.272383783 +0200
@@ -1,5 +1,5 @@
/* Test of strerror_r() function.
- Copyright (C) 2007-2018 Free Software Foundation, Inc.
+ Copyright (C) 2007-2020 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -165,9 +165,6 @@
strerror_r (EACCES, buf, sizeof buf);
strerror_r (-5, buf, sizeof buf);
- ASSERT (msg1 == msg2 || msg1 == msg4 || STREQ (msg1, str1));
- ASSERT (msg2 == msg4 || STREQ (msg2, str2));
- ASSERT (msg3 == msg4 || STREQ (msg3, str3));
ASSERT (STREQ (msg4, str4));
free (str1);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opencloudos-stream/prelude-lml.git
git@gitee.com:opencloudos-stream/prelude-lml.git
opencloudos-stream
prelude-lml
prelude-lml
master

搜索帮助