From 0c41409b7bd922f89cc04cf8363cd0a5511aeee4 Mon Sep 17 00:00:00 2001 From: chuaizhzh Date: Wed, 17 Mar 2021 17:11:49 +0800 Subject: [PATCH] =?UTF-8?q?=20=E4=BF=AE=E5=A4=8Dpipe=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98=20=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=94=A8=E4=BE=8B=E4=B8=AD=E9=81=8D=E5=8E=86=E4=BA=86?= =?UTF-8?q?32=E4=B8=AApipe=EF=BC=8C=E5=85=B6=E4=B8=AD=E6=9C=89pipe?= =?UTF-8?q?=E8=A2=AB=E5=85=B6=E4=BB=96=E8=BF=9B=E7=A8=8B=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=A4=B1=E8=B4=A5=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E9=81=8D=E5=8E=86=E7=9A=84=E6=93=8D=E4=BD=9C=EF=BC=8C=E6=AD=A4?= =?UTF-8?q?=E5=A4=84=E6=B2=A1=E6=9C=89=E5=BF=85=E8=A6=81=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I06414c93909fed65152c42c983ddf4ffe419d702 --- kernel_lite/ipc_posix/pipe_fifo/PipeTest.cpp | 22 -------------------- 1 file changed, 22 deletions(-) diff --git a/kernel_lite/ipc_posix/pipe_fifo/PipeTest.cpp b/kernel_lite/ipc_posix/pipe_fifo/PipeTest.cpp index 74a62ba08..3a455614a 100755 --- a/kernel_lite/ipc_posix/pipe_fifo/PipeTest.cpp +++ b/kernel_lite/ipc_posix/pipe_fifo/PipeTest.cpp @@ -221,28 +221,6 @@ HWTEST_F(PipeTest, testPipeBlock, Function | MediumTest | Level2) AssertProcExitedOK(pid); } -/** - * @tc.number SUB_KERNEL_IPC_PIPE_0500 - * @tc.name teset max pipe number - * @tc.desc [C- SOFTWARE -0200] - */ -HWTEST_F(PipeTest, testMaxPipeNum, Function | MediumTest | Level2) -{ - int fd[MAX_PIPE_NUMBER * 2]; // two file descriptor - int tmpInt; - for (int i = 0; i < MAX_PIPE_NUMBER; i++) { - tmpInt = pipe(&fd[i * 2]); - ASSERT_EQ(tmpInt, 0) << "> Create Pipe Error! " << errno; - LOG("> Create Pipe %d", i); - } - tmpInt = pipe(fd); - EXPECT_TRUE((tmpInt == -1) && (errno == ENFILE)) << "> tmpInt = "<< tmpInt << "\n" \ - << "> errno = " << errno; - for (int i = 0; i < MAX_PIPE_NUMBER * 2; i++) { - close(fd[i]); - } -} - /** * @tc.number SUB_KERNEL_IPC_PIPE_0600 * @tc.name test pipe-ipc between brother -- GitLab