Lines Matching refs:LOG
55 LOG("all supported signal DefaultActionTest test %d: %s, expectStop=%d",
73 LOG("all supported signal SendAndRecv test %d: %s", index, ALL_SIGNALS[index].signame);
87 … LOG("all supported signal's description string test: %d(%s)", signo, ALL_SIGNALS[signo].signame);
96 LOG("redirect stderr fail, freopen errno=%d\n", errno);
119 LOG("parent in");
126 LOG("child in");
131 LOG("sigprocmask rt = %d", rt);
133 LOG("child exit 0");
156 LOG("before sigsuspend");
158 LOG("sigsuspend rt = %d", rt);
191 LOG("change handler to SIG_IGN");
195 LOG("Received signal check fail, expected 0, but get %d", mReceivedSignal);
199 LOG("change handler to SignalHandler");
204 LOG("Received signal check fail, expected %d, but get %d", SIGURG, mReceivedSignal);
208 LOG("change handler to SIG_DFL");
213 LOG("Received signal check fail, expected 0, but get %d", mReceivedSignal);
219 LOG("------ Send SIGURG 1");
222 LOG("------ Send SIGURG 2");
225 LOG("------ Send SIGURG 3");
246 LOG("Received signal check fail, expected signal=%d", SIGQUIT);
266 LOG("shmget errno = %d\n", errno);
281 LOG("before abort");
284 LOG("after abort");
292 LOG("shmat fail, errno = %d", errno);
295 LOG("Received signal check fail, expected signal=%d", SIGABRT);
320 LOG("sigaction return fail, rt=%d", rt);
327 … LOG("SigactionHandler check fail, expected signal:%d, actual:%d", SIGALRM, mReceivedSignal);
331 LOG("child exited with code=%d", exitCode);
360 LOG("sigwait1 returned: %d, signo=%d, mReceivedSignal1: %d", rt, sig, mReceivedSignal);
362 LOG("Received signal check fail, expected signal=%d", SIGALRM);
367 LOG("sigwait2 returned: %d, signo=%d, mReceivedSignal1: %d", rt, sig, mReceivedSignal);
369 LOG("Received signal check fail, expected signal=%d", SIGALRM);
374 LOG("sigwait3 returned: %d, signo=%d, mReceivedSignal3: %d", rt, sig, mReceivedSignal);
376 LOG("Received signal check fail, expected signal=%d", SIGALRM);
380 LOG("child exited with code=%d", exitCode);
384 LOG("calling kill 1, signo=%d", SIGALRM);
387 LOG("calling kill 2, signo=%d", SIGTERM);
390 LOG("calling kill 3, signo=%d", SIGALRM);
416 LOG("sigwait1 returned: %d, signo=%d, mReceivedSignal1: %d", rt, sig, mReceivedSignal);
417 LOG("child exiting with code=%d", exitCode);
420 LOG("parent pid is %d, child pid is %d", getpid(), pid);
422 LOG("calling kill 1, signo=%d", SIGALRM);
427 LOG("calling kill 2, signo=%d", SIGKILL);
459 LOG("sigtimedwait return fail, expected:%d, actual:%d", SIGSEGV, rt);
467 LOG("SIGINT should still in block set!");
471 LOG("SIGSEGV should still in block set!");
485 LOG("pending set empty");
488 LOG("========pending set not empty=========");
490 LOG("pending set is SIGCHLD");
493 LOG("pending set is not SIGCHLD!");
523 LOG("sigtimedwait returned: %d", rt);
525 … LOG("sigtimedwait error check fail, expected errno=%d(EAGAIN), actual=%d", EAGAIN, errno);
529 LOG("clock_gettime1 : tv_sec=%ld, tv_nsec=%ld", time1.tv_sec, time1.tv_nsec);
530 LOG("clock_gettime2 : tv_sec=%ld, tv_nsec=%ld", time2.tv_sec, time2.tv_nsec);
531 LOG("duration : %f ms", duration);
533 LOG("Timeout value accuracy check fail, expected=1000, actual=%f", duration);
537 LOG("child exited with code=%d", exitCode);
565 LOG("sigtimedwait should return the signal, expected:%d, actual:%d", SIGINT, rt);
570 LOG("sigtimedwait set siginfo_t fail, si_signo=%d", si.si_signo);
574 LOG("child exited with code=%d", exitCode);
601 LOG("sigprocmask failed");
604 LOG("raise SIGALRM");
609 LOG("SIGALRM is not in pending set");
622 LOG("duration: %f ms", duration);
624 LOG("sigwaitinfo should return immediately, but %f ms used", duration);
628 LOG("sigwaitinfo should return the signal, expected:%d, actual:%d", SIGALRM, rt);
631 LOG("child exited with code=%d", exitCode);
659 LOG("pause should return -1, but rt=%d", rt);
663 LOG("pause should set errno to 4(EINTR),but get %d", errno);
668 LOG("paused time: %ld ms", duration);
670 LOG("paused time check error.");
674 LOG("Received signal check fail, expected signal=%d", SIGQUIT);
704 LOG("sigprocmask fail, rt=%d, errno=%d", rt, errno);
707 LOG("before pause");
710 LOG("pause should return -1, but rt=%d", rt);
714 LOG("pause should set errno to 4(EINTR),but get %d", errno);
717 LOG("after pause");
719 LOG("Received signal check fail, expected %d,but get %d", SIGINT, mReceivedSignal);
736 LOG("pending set empty");
738 LOG("========pending set not empty=========");
781 LOG("pending signal set should not reserved via fork");
788 LOG("signal mask set should reserved via fork");
792 LOG("unblock SIGALRM.");
797 LOG("pending signal set is not empty after unblock");
801 LOG("child exit(%d).", exitCode);
841 LOG("SignalHandler check fail, expected=%d, actual=%d", 0, mReceivedSignal);
842 LOG("SIGINT(%d) should has blocked!", SIGINT);
846 LOG("unblock SIGINT");
856 LOG("SIGINT should has deleted from block set!");
860 LOG("SIGUSR1 should still in block set!");
864 LOG("SignalHandler check fail, expected=%d, actual=%d", SIGINT, mReceivedSignal);
865 LOG("SIGALRM should deliver after unblock!");
874 LOG("SIGUSR1 is not in pending set!");
877 LOG("SIGUSR1 is in pending set.");
881 LOG("SignalHandler check fail, expected=%d, actual=%d", 0, mReceivedSignal);
882 LOG("SIGUSR1(%d) should has blocked!", SIGUSR1);
886 LOG("unblock SIGUSR1");
892 LOG("SignalHandler check fail, expected=%d, actual=%d", SIGUSR1, mReceivedSignal);
893 LOG("SIGUSR1 should deliver after unblock!");
897 LOG("child exit(%d).", exitCode);
938 LOG("unblock SIGALRM.");
966 LOG("add a new sig to block set");
972 LOG("unblock a not-in-set sig");
982 LOG("set new block set, clear old one");
991 LOG("unblock git, clear the block set");
1005 LOG("Test: not-in-set signal could be caught.");
1014 LOG("sigprocmask fail, rt=%d, errno=%d", rt, errno);
1022 LOG("SignalHandler check fail, expected=SIGINT, actual=%d", mReceivedSignal);
1041 LOG("Test: not-in-set signal could terminate the process.");
1050 LOG("sigprocmask fail, rt=%d, errno=%d", rt, errno);
1079 LOG("sigsuspend rt = %d, errno=%d", rt, errno);
1111 LOG("sigsuspend should return -1, but rt=%d", rt);
1115 LOG("sigsuspend should set errno to 4(EINTR),but get %d", errno);
1119 LOG("Received signal check fail, expected signal=%d", SIGHUP);
1156 LOG("Block SIGINT...");
1159 LOG("sigprocmask fail, rt=%d, errno=%d", rt, errno);
1162 LOG("Suspend SIGQUIT...");
1165 LOG("sigsuspend should return -1, but rt=%d", rt);
1171 LOG("Received signal check fail, get %d", mReceivedSignal);
1175 LOG("Check current mask...");
1179 LOG("SIGINT should in block set!");
1183 LOG("SIGQUIT should not in block set!");
1236 LOG("pthread_create failed, errno=%d", ret);
1243 LOG("pthread_join failed, errno=%d", ret);
1248 LOG("sub thread exited failed, code=%d", c);
1253 LOG("SignalHandler check fail, expected signal:%d, actual:%d", SIGINT, mReceivedSignal);
1306 LOG("add SIGUSR1 to block set");
1321 LOG("check the block set is not effected");
1327 LOG("restore default config");
1361 LOG("check that set not changed after failed-sigadd");
1382 LOG("test and-set with empty set:");
1402 LOG("test or-set with empty set:");
1420 LOG("delete in-set sig:");
1472 LOG("delete not-in-set sig:");
1493 LOG("delete invalid sig:");
1502 LOG("check that set not changed after failed-delete");
1520 LOG("test or-set with non-overlap sets:");
1542 LOG("test or-set with overlapping sets:");
1570 LOG("test and-set with non-overlap sets:");
1591 LOG("test and-set with overlapping sets:");
1617 LOG("test and-set with multi-overlapping sets:");
1644 LOG("check that the signal is added to the mask");
1679 LOG("add sig to mask");
1686 LOG("delete signal from the mask");
1690 LOG("check that the signal is deleted");
1727 LOG("redirect stderr fail, freopen errno=%d\n", errno);
1750 LOG("redirect stderr fail, freopen errno=%d\n", errno);
1773 LOG("redirect stderr fail, freopen errno=%d\n", errno);