提交 8b07482c 编写于 作者: zzuli_lyw's avatar zzuli_lyw

Fix test cases' bugs in xts suite (2/2) (dependent pr...

Fix test cases' bugs in xts suite (2/2) (dependent pr https://gitee.com/openharmony/xts_acts/pulls/8683)
fix code format
Issue: https://gitee.com/openharmony/third_party_musl/issues/I6Z32OSigned-off-by: zzuli_lyw's avatarzzulilyw <378305181@qq.com>
上级 6ab4493c
......@@ -27,7 +27,7 @@ typedef void (* ATEXIT_CB)();
#define TEST_DSO "/data/tests/libc-test/src/libatexit_dlclose_dso.so"
#define ATEXIT_CB_NAME "atexit_cb"
#define ATEXIT_WATCHPOINT_NAME "g_watchpoint"
static const char* libatexit_dlclose_dso_absolute_path = "/data/tests/libc-test/src/libatexit_dlclose_dso.so";
static const char* LIBATEXIT_DLCLOSE_DSO_ABSOLUTE_PATH = "/data/tests/libc-test/src/libatexit_dlclose_dso.so";
int fork_main(char *exe)
{
......
......@@ -45,21 +45,19 @@
#define SIGCHAIN_SIGNAL_56 56
#define SIGCHAIN_SIGNAL_64 64
// extern bool get_sigchain_mask_enable();
bool get_sigchain_mask_enable()
{
#ifdef OHOS_ENABLE_PARAMETER
static CachedHandle sigchain_procmask_handle = NULL;
if (sigchain_procmask_handle == NULL) {
sigchain_procmask_handle = CachedParameterCreate(param_name, "false");
}
char *param_value = CachedParameterGet(sigchain_procmask_handle);
if (param_value != NULL) {
if (strcmp(param_value, "true") == 0) {
return true;
}
}
static CachedHandle sigchain_procmask_handle = NULL;
if (sigchain_procmask_handle == NULL) {
sigchain_procmask_handle = CachedParameterCreate(param_name, "false");
}
char *param_value = CachedParameterGet(sigchain_procmask_handle);
if (param_value != NULL) {
if (strcmp(param_value, "true") == 0) {
return true;
}
}
#endif
return false;
return false;
}
\ No newline at end of file
......@@ -28,7 +28,6 @@
void mknod_0100(void)
{
char pathname[PATH_MAX] = "/dev/zero";
// FILE_ABSOLUTE_PATH("mknod", pathname);
int ret = mknod(pathname, TEST_MODE, 0);
EXPECT_EQ("mknod_0100", ret, ERREXPECT);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册