Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5b14cee5 authored by Yi Kong's avatar Yi Kong Committed by android-build-merger
Browse files

Fix android-cloexec-pipe clang-tidy warning am: 1fa946a2

am: 975bd46c

Change-Id: Ifad6540e04c2b30d32ce189497f01d9d73edb87a
parents a4c49480 975bd46c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
 */

#include <dirent.h>
#include <fcntl.h>

#include <set>
#include <string>
@@ -69,7 +70,7 @@ TEST(FileUtilsTests, FindFilesFindApkFilesRecursive) {

TEST(FileUtilsTests, ReadFile) {
  int pipefd[2];
  ASSERT_EQ(pipe(pipefd), 0);
  ASSERT_EQ(pipe2(pipefd, O_CLOEXEC), 0);

  ASSERT_EQ(write(pipefd[1], "foobar", 6), 6);
  close(pipefd[1]);