diff --git a/kernel_lite/ipc_posix/pipe_fifo/PipeTest.cpp b/kernel_lite/ipc_posix/pipe_fifo/PipeTest.cpp index 74a62ba08cf4f93635cab803946d80cf8b05c015..3a455614ae7eaf55d727ddb5b72ef444d8bd1948 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