name
stringlengths
1
473k
code
stringlengths
7
647k
asm
stringlengths
4
3.39M
file
stringlengths
8
196
(anonymous namespace)::DepsLogTestRecompact::~DepsLogTestRecompact()
TEST_F(DepsLogTest, Recompact) { const char kManifest[] = "rule cc\n" " command = cc\n" " deps = gcc\n" "build out.o: cc\n" "build other_out.o: cc\n"; // Write some deps to the file and grab its size. int file_size; { State state; ASSERT_NO_FATAL_FAILURE(AssertParse(&state, kManifest)); DepsLog l...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x821b0 movq -0x10(%rbp), %rdi movl $0x10, %esi callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/deps_log_test.cc
(anonymous namespace)::DepsLogTestRecompact::Run()
TEST_F(DepsLogTest, Recompact) { const char kManifest[] = "rule cc\n" " command = cc\n" " deps = gcc\n" "build out.o: cc\n" "build other_out.o: cc\n"; // Write some deps to the file and grab its size. int file_size; { State state; ASSERT_NO_FATAL_FAILURE(AssertParse(&state, kManifest)); DepsLog l...
pushq %rbp movq %rsp, %rbp subq $0xe90, %rsp # imm = 0xE90 movq %rdi, -0x8(%rbp) movups 0x88e25(%rip), %xmm0 # 0x10b03b movups %xmm0, -0x25(%rbp) movaps 0x88e0f(%rip), %xmm0 # 0x10b030 movaps %xmm0, -0x30(%rbp) movaps 0x88df4(%rip), %xmm0 # 0x10b020 movaps %xmm0, -0x40(%rbp) movaps 0x88dd9(%rip), %x...
/adityavs[P]ninja/src/deps_log_test.cc
(anonymous namespace)::DepsLogTestInvalidHeader::Create()
TEST_F(DepsLogTest, InvalidHeader) { const char *kInvalidHeaders[] = { "", // Empty file. "# ninjad", // Truncated first line. "# ninjadeps\n", // No version int. "# ninjadeps\n\001\002", // Truncated version int. "# ninjade...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x10, %edi callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0x849f0 jmp 0x849b3 movq -0x18(%rbp), %rax leaq 0xe1d02(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi movq %rax, %rcx movl %edx, %...
/adityavs[P]ninja/src/deps_log_test.cc
(anonymous namespace)::DepsLogTestInvalidHeader::DepsLogTestInvalidHeader()
TEST_F(DepsLogTest, InvalidHeader) { const char *kInvalidHeaders[] = { "", // Empty file. "# ninjad", // Truncated first line. "# ninjadeps\n", // No version int. "# ninjadeps\n\001\002", // Truncated version int. "# ninjade...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x7fda0 movq -0x10(%rbp), %rax leaq 0xdd0bc(%rip), %rcx # 0x161ad0 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
/adityavs[P]ninja/src/deps_log_test.cc
(anonymous namespace)::DepsLogTestTruncated::Create()
TEST_F(DepsLogTest, Truncated) { // Create a file with some entries. { State state; DepsLog log; string err; EXPECT_TRUE(log.OpenForWrite(kTestFilename, &err)); ASSERT_EQ("", err); vector<Node*> deps; deps.push_back(state.GetNode("foo.h", 0)); deps.push_back(state.GetNode("bar.h", 0...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x10, %edi callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0x84ee0 jmp 0x84ea3 movq -0x18(%rbp), %rax leaq 0xe1812(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi movq %rax, %rcx movl %edx, %...
/adityavs[P]ninja/src/deps_log_test.cc
(anonymous namespace)::DepsLogTestTruncated::~DepsLogTestTruncated()
TEST_F(DepsLogTest, Truncated) { // Create a file with some entries. { State state; DepsLog log; string err; EXPECT_TRUE(log.OpenForWrite(kTestFilename, &err)); ASSERT_EQ("", err); vector<Node*> deps; deps.push_back(state.GetNode("foo.h", 0)); deps.push_back(state.GetNode("bar.h", 0...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x80df0 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/deps_log_test.cc
(anonymous namespace)::DepsLogTestTruncated::Run()
TEST_F(DepsLogTest, Truncated) { // Create a file with some entries. { State state; DepsLog log; string err; EXPECT_TRUE(log.OpenForWrite(kTestFilename, &err)); ASSERT_EQ("", err); vector<Node*> deps; deps.push_back(state.GetNode("foo.h", 0)); deps.push_back(state.GetNode("bar.h", 0...
pushq %rbp movq %rsp, %rbp subq $0x5a0, %rsp # imm = 0x5A0 movq %rdi, -0x8(%rbp) leaq -0x110(%rbp), %rdi callq 0xf2630 leaq -0x170(%rbp), %rdi callq 0x57030 jmp 0x84f99 leaq -0x1a0(%rbp), %rdi callq 0x1b760 leaq 0xe1714(%rip), %rax # 0x1666c0 movq (%rax), %rax movq %rax, -0x4f8(%rbp) leaq -0x1c1(%rbp), %...
/adityavs[P]ninja/src/deps_log_test.cc
(anonymous namespace)::DepsLogTestTruncatedRecovery::Create()
TEST_F(DepsLogTest, TruncatedRecovery) { // Create a file with some entries. { State state; DepsLog log; string err; EXPECT_TRUE(log.OpenForWrite(kTestFilename, &err)); ASSERT_EQ("", err); vector<Node*> deps; deps.push_back(state.GetNode("foo.h", 0)); deps.push_back(state.GetNode("b...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x10, %edi callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0x85a20 jmp 0x859e3 movq -0x18(%rbp), %rax leaq 0xe0cd2(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi movq %rax, %rcx movl %edx, %...
/adityavs[P]ninja/src/deps_log_test.cc
(anonymous namespace)::DepsLogTestTruncatedRecovery::DepsLogTestTruncatedRecovery()
TEST_F(DepsLogTest, TruncatedRecovery) { // Create a file with some entries. { State state; DepsLog log; string err; EXPECT_TRUE(log.OpenForWrite(kTestFilename, &err)); ASSERT_EQ("", err); vector<Node*> deps; deps.push_back(state.GetNode("foo.h", 0)); deps.push_back(state.GetNode("b...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x7fda0 movq -0x10(%rbp), %rax leaq 0xdc154(%rip), %rcx # 0x161b98 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
/adityavs[P]ninja/src/deps_log_test.cc
(anonymous namespace)::DepsLogTestTruncatedRecovery::~DepsLogTestTruncatedRecovery()
TEST_F(DepsLogTest, TruncatedRecovery) { // Create a file with some entries. { State state; DepsLog log; string err; EXPECT_TRUE(log.OpenForWrite(kTestFilename, &err)); ASSERT_EQ("", err); vector<Node*> deps; deps.push_back(state.GetNode("foo.h", 0)); deps.push_back(state.GetNode("b...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x80df0 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/deps_log_test.cc
(anonymous namespace)::DepsLogTestTruncatedRecovery::~DepsLogTestTruncatedRecovery()
TEST_F(DepsLogTest, TruncatedRecovery) { // Create a file with some entries. { State state; DepsLog log; string err; EXPECT_TRUE(log.OpenForWrite(kTestFilename, &err)); ASSERT_EQ("", err); vector<Node*> deps; deps.push_back(state.GetNode("foo.h", 0)); deps.push_back(state.GetNode("b...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x85a60 movq -0x10(%rbp), %rdi movl $0x10, %esi callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/deps_log_test.cc
(anonymous namespace)::DepsLogTestTruncatedRecovery::Run()
TEST_F(DepsLogTest, TruncatedRecovery) { // Create a file with some entries. { State state; DepsLog log; string err; EXPECT_TRUE(log.OpenForWrite(kTestFilename, &err)); ASSERT_EQ("", err); vector<Node*> deps; deps.push_back(state.GetNode("foo.h", 0)); deps.push_back(state.GetNode("b...
pushq %rbp movq %rsp, %rbp subq $0x850, %rsp # imm = 0x850 movq %rdi, -0x8(%rbp) leaq -0x110(%rbp), %rdi callq 0xf2630 leaq -0x170(%rbp), %rdi callq 0x57030 jmp 0x85ad9 leaq -0x1a0(%rbp), %rdi callq 0x1b760 leaq 0xe0bd4(%rip), %rax # 0x1666c0 movq (%rax), %rax movq %rax, -0x750(%rbp) leaq -0x1c1(%rbp), %...
/adityavs[P]ninja/src/deps_log_test.cc
(anonymous namespace)::RegisterDiskInterfaceTestStatBadPath::RegisterDiskInterfaceTestStatBadPath()
TEST_F(DiskInterfaceTest, StatBadPath) { string err; #ifdef _WIN32 string bad_path("cc:\\foo"); EXPECT_EQ(-1, disk_.Stat(bad_path, &err)); EXPECT_NE("", err); #else string too_long_name(512, 'x'); EXPECT_EQ(-1, disk_.Stat(too_long_name, &err)); EXPECT_NE("", err); #endif }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x94d(%rip), %rdi # 0x87c30 leaq 0x83ebd(%rip), %rsi # 0x10b1a7 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::RegisterDiskInterfaceTestStatExistingDir::RegisterDiskInterfaceTestStatExistingDir()
TEST_F(DiskInterfaceTest, StatExistingDir) { string err; ASSERT_TRUE(disk_.MakeDir("subdir")); ASSERT_TRUE(disk_.MakeDir("subdir/subsubdir")); EXPECT_GT(disk_.Stat("..", &err), 1); EXPECT_EQ("", err); EXPECT_GT(disk_.Stat(".", &err), 1); EXPECT_EQ("", err); EXPECT_GT(disk_.Stat("subdir", &err), 1); EX...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xe1d(%rip), %rdi # 0x88160 leaq 0x83ef9(%rip), %rsi # 0x10b243 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::RegisterDiskInterfaceTestReadFile::RegisterDiskInterfaceTestReadFile()
TEST_F(DiskInterfaceTest, ReadFile) { string err; std::string content; ASSERT_EQ(DiskInterface::NotFound, disk_.ReadFile("foobar", &content, &err)); EXPECT_EQ("", content); EXPECT_NE("", err); // actual value is platform-specific err.clear(); const char* kTestFile = "testfile"; FILE* f = fo...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x1b2d(%rip), %rdi # 0x88ea0 leaq 0x840aa(%rip), %rsi # 0x10b424 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::RegisterDiskInterfaceTestMakeDirs::RegisterDiskInterfaceTestMakeDirs()
TEST_F(DiskInterfaceTest, MakeDirs) { string path = "path/with/double//slash/"; EXPECT_TRUE(disk_.MakeDirs(path)); FILE* f = fopen((path + "a_file").c_str(), "w"); EXPECT_TRUE(f); EXPECT_EQ(0, fclose(f)); #ifdef _WIN32 string path2 = "another\\with\\back\\\\slashes\\"; EXPECT_TRUE(disk_.MakeDirs(path2.c_s...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x212d(%rip), %rdi # 0x894d0 leaq 0x84168(%rip), %rsi # 0x10b512 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::RegisterStatTestSimple::RegisterStatTestSimple()
TEST_F(StatTest, Simple) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat in\n")); Node* out = GetNode("out"); string err; EXPECT_TRUE(out->Stat(this, &err)); EXPECT_EQ("", err); ASSERT_EQ(1u, stats_.size()); scan_.RecomputeDirty(out, NULL); ASSERT_EQ(2u, stats_.size()); ASSERT_EQ("out"...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x27ad(%rip), %rdi # 0x89bb0 leaq 0x8420e(%rip), %rsi # 0x10b618 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::RegisterStatTestTwoStep::RegisterStatTestTwoStep()
TEST_F(StatTest, TwoStep) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat mid\n" "build mid: cat in\n")); Node* out = GetNode("out"); string err; EXPECT_TRUE(out->Stat(this, &err)); EXPECT_EQ("", err); ASSERT_EQ(1u, stats_.size()); scan_.RecomputeDirty(out, NULL); ASSERT_EQ(3u, stats_.si...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x30fd(%rip), %rdi # 0x8a530 leaq 0x84394(%rip), %rsi # 0x10b7ce callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::RegisterStatTestMiddle::RegisterStatTestMiddle()
TEST_F(StatTest, Middle) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat mid\n" "build mid: cat in\n")); mtimes_["in"] = 1; mtimes_["mid"] = 0; // missing mtimes_["out"] = 1; Node* out = GetNode("out"); string err; EXPECT_TRUE(out->Stat(this, &err)); EXPECT_EQ("", err); ASSERT_EQ(1u,...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x3f9d(%rip), %rdi # 0x8b430 leaq 0x84469(%rip), %rsi # 0x10b903 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestStatMissingFile::Create()
TEST_F(DiskInterfaceTest, StatMissingFile) { string err; EXPECT_EQ(0, disk_.Stat("nosuchfile", &err)); EXPECT_EQ("", err); // On Windows, the errno for a file in a nonexistent directory // is different. EXPECT_EQ(0, disk_.Stat("nosuchdir/nosuchfile", &err)); EXPECT_EQ("", err); // On POSIX systems, th...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x58, %edi callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0x87510 jmp 0x874d3 movq -0x18(%rbp), %rax leaq 0xdf1e2(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi movq %rax, %rcx movl %edx, %...
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestStatMissingFile::DiskInterfaceTestStatMissingFile()
TEST_F(DiskInterfaceTest, StatMissingFile) { string err; EXPECT_EQ(0, disk_.Stat("nosuchfile", &err)); EXPECT_EQ("", err); // On Windows, the errno for a file in a nonexistent directory // is different. EXPECT_EQ(0, disk_.Stat("nosuchdir/nosuchfile", &err)); EXPECT_EQ("", err); // On POSIX systems, th...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x87550 movq -0x10(%rbp), %rax leaq 0xda6b4(%rip), %rcx # 0x161be8 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestStatMissingFile::~DiskInterfaceTestStatMissingFile()
TEST_F(DiskInterfaceTest, StatMissingFile) { string err; EXPECT_EQ(0, disk_.Stat("nosuchfile", &err)); EXPECT_EQ("", err); // On Windows, the errno for a file in a nonexistent directory // is different. EXPECT_EQ(0, disk_.Stat("nosuchdir/nosuchfile", &err)); EXPECT_EQ("", err); // On POSIX systems, th...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x87b80 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestStatMissingFile::~DiskInterfaceTestStatMissingFile()
TEST_F(DiskInterfaceTest, StatMissingFile) { string err; EXPECT_EQ(0, disk_.Stat("nosuchfile", &err)); EXPECT_EQ("", err); // On Windows, the errno for a file in a nonexistent directory // is different. EXPECT_EQ(0, disk_.Stat("nosuchdir/nosuchfile", &err)); EXPECT_EQ("", err); // On POSIX systems, th...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x875c0 movq -0x10(%rbp), %rdi movl $0x58, %esi callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestStatMissingFile::Run()
TEST_F(DiskInterfaceTest, StatMissingFile) { string err; EXPECT_EQ(0, disk_.Stat("nosuchfile", &err)); EXPECT_EQ("", err); // On Windows, the errno for a file in a nonexistent directory // is different. EXPECT_EQ(0, disk_.Stat("nosuchdir/nosuchfile", &err)); EXPECT_EQ("", err); // On POSIX systems, th...
pushq %rbp movq %rsp, %rbp subq $0x160, %rsp # imm = 0x160 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xd0(%rbp) leaq -0x28(%rbp), %rdi callq 0x1b760 movq -0xd0(%rbp), %rax leaq 0xdefbf(%rip), %rcx # 0x1666c0 movq (%rcx), %rcx movq %rcx, -0xc8(%rbp) addq $0x50, %rax movq %rax, -0xc0(%rbp) le...
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestStatBadPath::DiskInterfaceTestStatBadPath()
TEST_F(DiskInterfaceTest, StatBadPath) { string err; #ifdef _WIN32 string bad_path("cc:\\foo"); EXPECT_EQ(-1, disk_.Stat(bad_path, &err)); EXPECT_NE("", err); #else string too_long_name(512, 'x'); EXPECT_EQ(-1, disk_.Stat(too_long_name, &err)); EXPECT_NE("", err); #endif }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x87550 movq -0x10(%rbp), %rax leaq 0xd9fd4(%rip), %rcx # 0x161c88 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestStatBadPath::~DiskInterfaceTestStatBadPath()
TEST_F(DiskInterfaceTest, StatBadPath) { string err; #ifdef _WIN32 string bad_path("cc:\\foo"); EXPECT_EQ(-1, disk_.Stat(bad_path, &err)); EXPECT_NE("", err); #else string too_long_name(512, 'x'); EXPECT_EQ(-1, disk_.Stat(too_long_name, &err)); EXPECT_NE("", err); #endif }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x87b80 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestStatBadPath::~DiskInterfaceTestStatBadPath()
TEST_F(DiskInterfaceTest, StatBadPath) { string err; #ifdef _WIN32 string bad_path("cc:\\foo"); EXPECT_EQ(-1, disk_.Stat(bad_path, &err)); EXPECT_NE("", err); #else string too_long_name(512, 'x'); EXPECT_EQ(-1, disk_.Stat(too_long_name, &err)); EXPECT_NE("", err); #endif }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x87cd0 movq -0x10(%rbp), %rdi movl $0x58, %esi callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestStatBadPath::Run()
TEST_F(DiskInterfaceTest, StatBadPath) { string err; #ifdef _WIN32 string bad_path("cc:\\foo"); EXPECT_EQ(-1, disk_.Stat(bad_path, &err)); EXPECT_NE("", err); #else string too_long_name(512, 'x'); EXPECT_EQ(-1, disk_.Stat(too_long_name, &err)); EXPECT_NE("", err); #endif }
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x70(%rbp) leaq -0x28(%rbp), %rdi callq 0x1b760 leaq -0x49(%rbp), %rdi movq %rdi, -0x68(%rbp) callq 0x1b980 movq -0x68(%rbp), %rcx leaq -0x48(%rbp), %rdi movl $0x200, %esi # imm = 0x200 movl $0x78, %edx callq ...
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestStatExistingDir::Create()
TEST_F(DiskInterfaceTest, StatExistingDir) { string err; ASSERT_TRUE(disk_.MakeDir("subdir")); ASSERT_TRUE(disk_.MakeDir("subdir/subsubdir")); EXPECT_GT(disk_.Stat("..", &err), 1); EXPECT_EQ("", err); EXPECT_GT(disk_.Stat(".", &err), 1); EXPECT_EQ("", err); EXPECT_GT(disk_.Stat("subdir", &err), 1); EX...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x58, %edi callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0x881c0 jmp 0x88183 movq -0x18(%rbp), %rax leaq 0xde532(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi movq %rax, %rcx movl %edx, %...
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestStatExistingDir::~DiskInterfaceTestStatExistingDir()
TEST_F(DiskInterfaceTest, StatExistingDir) { string err; ASSERT_TRUE(disk_.MakeDir("subdir")); ASSERT_TRUE(disk_.MakeDir("subdir/subsubdir")); EXPECT_GT(disk_.Stat("..", &err), 1); EXPECT_EQ("", err); EXPECT_GT(disk_.Stat(".", &err), 1); EXPECT_EQ("", err); EXPECT_GT(disk_.Stat("subdir", &err), 1); EX...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x87b80 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestStatExistingDir::~DiskInterfaceTestStatExistingDir()
TEST_F(DiskInterfaceTest, StatExistingDir) { string err; ASSERT_TRUE(disk_.MakeDir("subdir")); ASSERT_TRUE(disk_.MakeDir("subdir/subsubdir")); EXPECT_GT(disk_.Stat("..", &err), 1); EXPECT_EQ("", err); EXPECT_GT(disk_.Stat(".", &err), 1); EXPECT_EQ("", err); EXPECT_GT(disk_.Stat("subdir", &err), 1); EX...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x88200 movq -0x10(%rbp), %rdi movl $0x58, %esi callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestStatExistingDir::Run()
TEST_F(DiskInterfaceTest, StatExistingDir) { string err; ASSERT_TRUE(disk_.MakeDir("subdir")); ASSERT_TRUE(disk_.MakeDir("subdir/subsubdir")); EXPECT_GT(disk_.Stat("..", &err), 1); EXPECT_EQ("", err); EXPECT_GT(disk_.Stat(".", &err), 1); EXPECT_EQ("", err); EXPECT_GT(disk_.Stat("subdir", &err), 1); EX...
pushq %rbp movq %rsp, %rbp subq $0x3b0, %rsp # imm = 0x3B0 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x238(%rbp) leaq -0x28(%rbp), %rdi callq 0x1b760 movq -0x238(%rbp), %rax leaq 0xde43f(%rip), %rcx # 0x1666c0 movq (%rcx), %rcx movq %rcx, -0x230(%rbp) addq $0x50, %rax movq %rax, -0x228(%rbp...
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestReadFile::Create()
TEST_F(DiskInterfaceTest, ReadFile) { string err; std::string content; ASSERT_EQ(DiskInterface::NotFound, disk_.ReadFile("foobar", &content, &err)); EXPECT_EQ("", content); EXPECT_NE("", err); // actual value is platform-specific err.clear(); const char* kTestFile = "testfile"; FILE* f = fo...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x58, %edi callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0x88f00 jmp 0x88ec3 movq -0x18(%rbp), %rax leaq 0xdd7f2(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi movq %rax, %rcx movl %edx, %...
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestReadFile::DiskInterfaceTestReadFile()
TEST_F(DiskInterfaceTest, ReadFile) { string err; std::string content; ASSERT_EQ(DiskInterface::NotFound, disk_.ReadFile("foobar", &content, &err)); EXPECT_EQ("", content); EXPECT_NE("", err); // actual value is platform-specific err.clear(); const char* kTestFile = "testfile"; FILE* f = fo...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x87550 movq -0x10(%rbp), %rax leaq 0xd8e54(%rip), %rcx # 0x161d78 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestReadFile::~DiskInterfaceTestReadFile()
TEST_F(DiskInterfaceTest, ReadFile) { string err; std::string content; ASSERT_EQ(DiskInterface::NotFound, disk_.ReadFile("foobar", &content, &err)); EXPECT_EQ("", content); EXPECT_NE("", err); // actual value is platform-specific err.clear(); const char* kTestFile = "testfile"; FILE* f = fo...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x87b80 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestReadFile::~DiskInterfaceTestReadFile()
TEST_F(DiskInterfaceTest, ReadFile) { string err; std::string content; ASSERT_EQ(DiskInterface::NotFound, disk_.ReadFile("foobar", &content, &err)); EXPECT_EQ("", content); EXPECT_NE("", err); // actual value is platform-specific err.clear(); const char* kTestFile = "testfile"; FILE* f = fo...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x88f40 movq -0x10(%rbp), %rdi movl $0x58, %esi callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestReadFile::Run()
TEST_F(DiskInterfaceTest, ReadFile) { string err; std::string content; ASSERT_EQ(DiskInterface::NotFound, disk_.ReadFile("foobar", &content, &err)); EXPECT_EQ("", content); EXPECT_NE("", err); // actual value is platform-specific err.clear(); const char* kTestFile = "testfile"; FILE* f = fo...
pushq %rbp movq %rsp, %rbp subq $0x150, %rsp # imm = 0x150 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xe0(%rbp) leaq -0x28(%rbp), %rdi callq 0x1b760 leaq -0x48(%rbp), %rdi callq 0x1b760 movq -0xe0(%rbp), %rax leaq 0xdd6f6(%rip), %rcx # 0x1666c0 movq (%rcx), %rcx movq %rcx, -0xd8(%rbp) addq ...
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestMakeDirs::Create()
TEST_F(DiskInterfaceTest, MakeDirs) { string path = "path/with/double//slash/"; EXPECT_TRUE(disk_.MakeDirs(path)); FILE* f = fopen((path + "a_file").c_str(), "w"); EXPECT_TRUE(f); EXPECT_EQ(0, fclose(f)); #ifdef _WIN32 string path2 = "another\\with\\back\\\\slashes\\"; EXPECT_TRUE(disk_.MakeDirs(path2.c_s...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x58, %edi callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0x89530 jmp 0x894f3 movq -0x18(%rbp), %rax leaq 0xdd1c2(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi movq %rax, %rcx movl %edx, %...
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestMakeDirs::DiskInterfaceTestMakeDirs()
TEST_F(DiskInterfaceTest, MakeDirs) { string path = "path/with/double//slash/"; EXPECT_TRUE(disk_.MakeDirs(path)); FILE* f = fopen((path + "a_file").c_str(), "w"); EXPECT_TRUE(f); EXPECT_EQ(0, fclose(f)); #ifdef _WIN32 string path2 = "another\\with\\back\\\\slashes\\"; EXPECT_TRUE(disk_.MakeDirs(path2.c_s...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x87550 movq -0x10(%rbp), %rax leaq 0xd8874(%rip), %rcx # 0x161dc8 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestMakeDirs::~DiskInterfaceTestMakeDirs()
TEST_F(DiskInterfaceTest, MakeDirs) { string path = "path/with/double//slash/"; EXPECT_TRUE(disk_.MakeDirs(path)); FILE* f = fopen((path + "a_file").c_str(), "w"); EXPECT_TRUE(f); EXPECT_EQ(0, fclose(f)); #ifdef _WIN32 string path2 = "another\\with\\back\\\\slashes\\"; EXPECT_TRUE(disk_.MakeDirs(path2.c_s...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x87b80 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestMakeDirs::~DiskInterfaceTestMakeDirs()
TEST_F(DiskInterfaceTest, MakeDirs) { string path = "path/with/double//slash/"; EXPECT_TRUE(disk_.MakeDirs(path)); FILE* f = fopen((path + "a_file").c_str(), "w"); EXPECT_TRUE(f); EXPECT_EQ(0, fclose(f)); #ifdef _WIN32 string path2 = "another\\with\\back\\\\slashes\\"; EXPECT_TRUE(disk_.MakeDirs(path2.c_s...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x89570 movq -0x10(%rbp), %rdi movl $0x58, %esi callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::DiskInterfaceTestMakeDirs::Run()
TEST_F(DiskInterfaceTest, MakeDirs) { string path = "path/with/double//slash/"; EXPECT_TRUE(disk_.MakeDirs(path)); FILE* f = fopen((path + "a_file").c_str(), "w"); EXPECT_TRUE(f); EXPECT_EQ(0, fclose(f)); #ifdef _WIN32 string path2 = "another\\with\\back\\\\slashes\\"; EXPECT_TRUE(disk_.MakeDirs(path2.c_s...
pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x78(%rbp) leaq -0x29(%rbp), %rdi movq %rdi, -0x70(%rbp) callq 0x1b980 movq -0x70(%rbp), %rdx leaq 0x81f3e(%rip), %rsi # 0x10b52d leaq -0x28(%rbp), %rdi callq 0x265d0 jmp 0x895fa leaq -0x29(%rbp), %rdi callq 0x1b530 ...
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::StatTestSimple::Create()
TEST_F(StatTest, Simple) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat in\n")); Node* out = GetNode("out"); string err; EXPECT_TRUE(out->Stat(this, &err)); EXPECT_EQ("", err); ASSERT_EQ(1u, stats_.size()); scan_.RecomputeDirty(out, NULL); ASSERT_EQ(2u, stats_.size()); ASSERT_EQ("out"...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x1a8, %edi # imm = 0x1A8 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0x89c10 jmp 0x89bd3 movq -0x18(%rbp), %rax leaq 0xdcae2(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::StatTestSimple::StatTestSimple()
TEST_F(StatTest, Simple) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat in\n")); Node* out = GetNode("out"); string err; EXPECT_TRUE(out->Stat(this, &err)); EXPECT_EQ("", err); ASSERT_EQ(1u, stats_.size()); scan_.RecomputeDirty(out, NULL); ASSERT_EQ(2u, stats_.size()); ASSERT_EQ("out"...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x89c60 movq -0x10(%rbp), %rax leaq 0xd8234(%rip), %rcx # 0x161e68 addq $0x10, %rcx movq %rcx, (%rax) leaq 0xd8226(%rip), %rcx # 0x161e68 addq $0x70, %rcx movq %rcx, 0x118(%rax) addq $0x10, %rsp ...
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::StatTestSimple::~StatTestSimple()
TEST_F(StatTest, Simple) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat in\n")); Node* out = GetNode("out"); string err; EXPECT_TRUE(out->Stat(this, &err)); EXPECT_EQ("", err); ASSERT_EQ(1u, stats_.size()); scan_.RecomputeDirty(out, NULL); ASSERT_EQ(2u, stats_.size()); ASSERT_EQ("out"...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x8a470 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::StatTestSimple::~StatTestSimple()
TEST_F(StatTest, Simple) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat in\n")); Node* out = GetNode("out"); string err; EXPECT_TRUE(out->Stat(this, &err)); EXPECT_EQ("", err); ASSERT_EQ(1u, stats_.size()); scan_.RecomputeDirty(out, NULL); ASSERT_EQ(2u, stats_.size()); ASSERT_EQ("out"...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x89d30 movq -0x10(%rbp), %rdi movl $0x1a8, %esi # imm = 0x1A8 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::StatTestSimple::Run()
TEST_F(StatTest, Simple) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat in\n")); Node* out = GetNode("out"); string err; EXPECT_TRUE(out->Stat(this, &err)); EXPECT_EQ("", err); ASSERT_EQ(1u, stats_.size()); scan_.RecomputeDirty(out, NULL); ASSERT_EQ(2u, stats_.size()); ASSERT_EQ("out"...
pushq %rbp movq %rsp, %rbp subq $0x100, %rsp # imm = 0x100 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x90(%rbp) leaq 0xdc91f(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movl %eax, %ecx movq -0x90(%rbp), %rax movl %ecx, -0xc(%rbp) addq $0x10, %rax movq %rax, -0x88(%rbp) leaq -0x14...
/adityavs[P]ninja/src/disk_interface_test.cc
non-virtual thunk to (anonymous namespace)::StatTestSimple::~StatTestSimple()
TEST_F(StatTest, Simple) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat in\n")); Node* out = GetNode("out"); string err; EXPECT_TRUE(out->Stat(this, &err)); EXPECT_EQ("", err); ASSERT_EQ(1u, stats_.size()); scan_.RecomputeDirty(out, NULL); ASSERT_EQ(2u, stats_.size()); ASSERT_EQ("out"...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi addq $-0x118, %rdi # imm = 0xFEE8 popq %rbp jmp 0x89d30 nopl (%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::StatTestTwoStep::~StatTestTwoStep()
TEST_F(StatTest, TwoStep) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat mid\n" "build mid: cat in\n")); Node* out = GetNode("out"); string err; EXPECT_TRUE(out->Stat(this, &err)); EXPECT_EQ("", err); ASSERT_EQ(1u, stats_.size()); scan_.RecomputeDirty(out, NULL); ASSERT_EQ(3u, stats_.si...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x8a470 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::StatTestTwoStep::~StatTestTwoStep()
TEST_F(StatTest, TwoStep) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat mid\n" "build mid: cat in\n")); Node* out = GetNode("out"); string err; EXPECT_TRUE(out->Stat(this, &err)); EXPECT_EQ("", err); ASSERT_EQ(1u, stats_.size()); scan_.RecomputeDirty(out, NULL); ASSERT_EQ(3u, stats_.si...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x8a5e0 movq -0x10(%rbp), %rdi movl $0x1a8, %esi # imm = 0x1A8 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
(anonymous namespace)::StatTestTwoStep::Run()
TEST_F(StatTest, TwoStep) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat mid\n" "build mid: cat in\n")); Node* out = GetNode("out"); string err; EXPECT_TRUE(out->Stat(this, &err)); EXPECT_EQ("", err); ASSERT_EQ(1u, stats_.size()); scan_.RecomputeDirty(out, NULL); ASSERT_EQ(3u, stats_.si...
pushq %rbp movq %rsp, %rbp subq $0x190, %rsp # imm = 0x190 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xe0(%rbp) leaq 0xdc06f(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movl %eax, %ecx movq -0xe0(%rbp), %rax movl %ecx, -0xc(%rbp) addq $0x10, %rax movq %rax, -0xd8(%rbp) leaq -0x14...
/adityavs[P]ninja/src/disk_interface_test.cc
non-virtual thunk to (anonymous namespace)::StatTestTwoStep::~StatTestTwoStep()
TEST_F(StatTest, TwoStep) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat mid\n" "build mid: cat in\n")); Node* out = GetNode("out"); string err; EXPECT_TRUE(out->Stat(this, &err)); EXPECT_EQ("", err); ASSERT_EQ(1u, stats_.size()); scan_.RecomputeDirty(out, NULL); ASSERT_EQ(3u, stats_.si...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi addq $-0x118, %rdi # imm = 0xFEE8 popq %rbp jmp 0x8a5e0 nopl (%rax)
/adityavs[P]ninja/src/disk_interface_test.cc
DyndepParserTestImplicitOut::Run()
TEST_F(DyndepParserTest, ImplicitOut) { ASSERT_NO_FATAL_FAILURE(AssertParse( "ninja_dyndep_version = 1\n" "build out | impout: dyndep\n")); EXPECT_EQ(1u, dyndep_file_.size()); DyndepFile::iterator i = dyndep_file_.find(state_.edges_[0]); ASSERT_NE(i, dyndep_file_.end()); EXPECT_EQ(false, i->second.restat_); ...
pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x30(%rbp) leaq 0xd5225(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0x30(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x7b7b3(%rip), %rsi # 0x10cc64 callq 0x92a70 movl -0xc(%rbp), %eax movl %eax, -0x24...
/adityavs[P]ninja/src/dyndep_parser_test.cc
DyndepParserTest::AssertParse(char const*)
void AssertParse(const char* input) { DyndepParser parser(&state_, &fs_, &dyndep_file_); string err; EXPECT_TRUE(parser.ParseTest(input, &err)); ASSERT_EQ("", err); }
pushq %rbp movq %rsp, %rbp subq $0x160, %rsp # imm = 0x160 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rcx movq %rcx, %rsi addq $0x10, %rsi movq %rcx, %rdx addq $0x118, %rdx # imm = 0x118 addq $0x1e8, %rcx # imm = 0x1E8 leaq -0xd0(%rbp), %rdi callq 0xda650 leaq -0xf0(...
/adityavs[P]ninja/src/dyndep_parser_test.cc
RegisterDyndepParserTestUnsupportedVersion1_1::RegisterDyndepParserTestUnsupportedVersion1_1()
TEST_F(DyndepParserTest, UnsupportedVersion1_1) { const char kInput[] = "ninja_dyndep_version = 1.1\n"; DyndepParser parser(&state_, &fs_, &dyndep_file_); string err; EXPECT_FALSE(parser.ParseTest(kInput, &err)); EXPECT_EQ("input:1: unsupported 'ninja_dyndep_version = 1.1'\n" "ninja_dyndep_version...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x210d(%rip), %rdi # 0x94fa0 leaq 0x7a2c6(%rip), %rsi # 0x10d160 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/dyndep_parser_test.cc
RegisterDyndepParserTestExplicitIn::RegisterDyndepParserTestExplicitIn()
TEST_F(DyndepParserTest, ExplicitIn) { const char kInput[] = "ninja_dyndep_version = 1\n" "build out: dyndep exp\n"; DyndepParser parser(&state_, &fs_, &dyndep_file_); string err; EXPECT_FALSE(parser.ParseTest(kInput, &err)); EXPECT_EQ("input:2: explicit inputs not supported\n" "build out: dyndep ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x280d(%rip), %rdi # 0x959a0 leaq 0x7a1c3(%rip), %rsi # 0x10d35d callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/dyndep_parser_test.cc
DyndepParserTestImplicitInsAndOuts::~DyndepParserTestImplicitInsAndOuts()
TEST_F(DyndepParserTest, ImplicitInsAndOuts) { ASSERT_NO_FATAL_FAILURE(AssertParse( "ninja_dyndep_version = 1\n" "build out | impout1 impout2: dyndep | impin1 impin2\n")); EXPECT_EQ(1u, dyndep_file_.size()); DyndepFile::iterator i = dyndep_file_.find(state_.edges_[0]); ASSERT_NE(i, dyndep_file_.end()); EXPEC...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x943b0 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/dyndep_parser_test.cc
GraphTestImplicitOutputOnlyMissing::Run()
TEST_F(GraphTest, ImplicitOutputOnlyMissing) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build | out.imp: cat in\n")); fs_.Create("in", ""); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("out.imp"), &err)); ASSERT_EQ("", err); EXPECT_TRUE(GetNode("out.imp")->dirty()); }
pushq %rbp movq %rsp, %rbp subq $0x170, %rsp # imm = 0x170 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xf8(%rbp) leaq 0xcc5df(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movl %eax, %ecx movq -0xf8(%rbp), %rax movl %ecx, -0xc(%rbp) addq $0x10, %rax movq %rax, -0xf0(%rbp) leaq -0x14...
/adityavs[P]ninja/src/graph_test.cc
GraphTestImplicitOutputOnlyOutOfDate::Run()
TEST_F(GraphTest, ImplicitOutputOnlyOutOfDate) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build | out.imp: cat in\n")); fs_.Create("out.imp", ""); fs_.Tick(); fs_.Create("in", ""); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("out.imp"), &err)); ASSERT_EQ("", err); EXPECT_TRUE(GetNode("ou...
pushq %rbp movq %rsp, %rbp subq $0x1d0, %rsp # imm = 0x1D0 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x148(%rbp) leaq 0xcc17f(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movl %eax, %ecx movq -0x148(%rbp), %rax movl %ecx, -0xc(%rbp) addq $0x10, %rax movq %rax, -0x140(%rbp) leaq -0...
/adityavs[P]ninja/src/graph_test.cc
GraphTestRootNodes::Run()
TEST_F(GraphTest, RootNodes) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out1: cat in1\n" "build mid1: cat in1\n" "build out2: cat mid1\n" "build out3 out4: cat mid1\n")); string err; vector<Node*> root_nodes = state_.RootNodes(&err); EXPECT_EQ(4u, root_nodes.size()); for (size_t i = 0; i < root_no...
pushq %rbp movq %rsp, %rbp subq $0xf0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xc0(%rbp) leaq 0xcb55f(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movl %eax, %ecx movq -0xc0(%rbp), %rax movl %ecx, -0xc(%rbp) addq $0x10, %rax movq %rax, -0xb8(%rbp) leaq -0x14(%rbp), %rdi callq 0x265b0...
/adityavs[P]ninja/src/graph_test.cc
GraphTestVarInOutPathEscaping::Run()
TEST_F(GraphTest, VarInOutPathEscaping) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build a$ b: cat no'space with$ space$$ no\"space2\n")); Edge* edge = GetNode("a b")->in_edge(); #ifdef _WIN32 EXPECT_EQ("cat no'space \"with space$\" \"no\\\"space2\" > \"a b\"", edge->EvaluateCommand()); #else EXPECT...
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x90(%rbp) leaq 0xcb2bf(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movl %eax, %ecx movq -0x90(%rbp), %rax movl %ecx, -0xc(%rbp) addq $0x10, %rax movq %rax, -0x88(%rbp) leaq -0x14(%rbp), %rdi callq 0x265b0...
/adityavs[P]ninja/src/graph_test.cc
GraphTestDepfileRemoved::Run()
TEST_F(GraphTest, DepfileRemoved) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule catdep\n" " depfile = $out.d\n" " command = cat $in > $out\n" "build ./out.o: catdep ./foo.cc\n")); fs_.Create("foo.h", ""); fs_.Create("foo.cc", ""); fs_.Tick(); fs_.Create("out.o.d", "out.o: foo.h\n"); fs_.Create("out...
pushq %rbp movq %rsp, %rbp subq $0x380, %rsp # imm = 0x380 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x260(%rbp) leaq 0xcaa3f(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movl %eax, %ecx movq -0x260(%rbp), %rax movl %ecx, -0xc(%rbp) addq $0x10, %rax movq %rax, -0x258(%rbp) leaq -0...
/adityavs[P]ninja/src/graph_test.cc
GraphTestRuleVariablesInScope::Run()
TEST_F(GraphTest, RuleVariablesInScope) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule r\n" " depfile = x\n" " command = depfile is $depfile\n" "build out: r in\n")); Edge* edge = GetNode("out")->in_edge(); EXPECT_EQ("depfile is x", edge->EvaluateCommand()); }
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x90(%rbp) leaq 0xc9f3f(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movl %eax, %ecx movq -0x90(%rbp), %rax movl %ecx, -0xc(%rbp) addq $0x10, %rax movq %rax, -0x88(%rbp) leaq -0x14(%rbp), %rdi callq 0x265b0...
/adityavs[P]ninja/src/graph_test.cc
GraphTestDepfileOverride::Run()
TEST_F(GraphTest, DepfileOverride) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule r\n" " depfile = x\n" " command = unused\n" "build out: r in\n" " depfile = y\n")); Edge* edge = GetNode("out")->in_edge(); EXPECT_EQ("y", edge->GetBinding("depfile")); }
pushq %rbp movq %rsp, %rbp subq $0xf0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xb0(%rbp) leaq 0xc9d5f(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movl %eax, %ecx movq -0xb0(%rbp), %rax movl %ecx, -0xc(%rbp) addq $0x10, %rax movq %rax, -0xa8(%rbp) leaq -0x14(%rbp), %rdi callq 0x265b0...
/adityavs[P]ninja/src/graph_test.cc
GraphTestNestedPhonyPrintsDone::Run()
TEST_F(GraphTest, NestedPhonyPrintsDone) { AssertParse(&state_, "build n1: phony \n" "build n2: phony n1\n" ); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("n2"), &err)); ASSERT_EQ("", err); Plan plan_; EXPECT_TRUE(plan_.AddTarget(GetNode("n2"), &err)); ASSERT_EQ("", err); EXPECT_EQ(0, plan_...
pushq %rbp movq %rsp, %rbp subq $0x1a0, %rsp # imm = 0x1A0 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x120(%rbp) addq $0x10, %rax movq %rax, -0x128(%rbp) leaq -0x10(%rbp), %rdi callq 0x265b0 movq -0x128(%rbp), %rdi movq -0x10(%rbp), %rdx leaq 0x71a99(%rip), %rsi # 0x10e8d9 callq 0xbee60 lea...
/adityavs[P]ninja/src/graph_test.cc
GraphTestPhonySelfReferenceError::Run()
TEST_F(GraphTest, PhonySelfReferenceError) { ManifestParserOptions parser_opts; parser_opts.phony_cycle_action_ = kPhonyCycleActionError; AssertParse(&state_, "build a: phony a\n", parser_opts); string err; EXPECT_FALSE(scan_.RecomputeDirty(GetNode("a"), &err)); ASSERT_EQ("dependency cycle: a -> a [-w ph...
pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x90(%rbp) leaq -0x10(%rbp), %rdi callq 0x265b0 movq -0x90(%rbp), %rdi movl $0x1, -0xc(%rbp) addq $0x10, %rdi movq -0x10(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rdx leaq 0x65226(%rip), %rsi # 0x1024fe c...
/adityavs[P]ninja/src/graph_test.cc
RegisterGraphTestFunkyMakefilePath::RegisterGraphTestFunkyMakefilePath()
TEST_F(GraphTest, FunkyMakefilePath) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule catdep\n" " depfile = $out.d\n" " command = cat $in > $out\n" "build out.o: catdep foo.cc\n")); fs_.Create("foo.cc", ""); fs_.Create("out.o.d", "out.o: ./foo/../implicit.h\n"); fs_.Create("out.o", ""); fs_.Tick(); f...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x17cd(%rip), %rdi # 0xa7b10 leaq 0x697a8(%rip), %rsi # 0x10faf2 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/graph_test.cc
RegisterGraphTestImplicitOutputOnlyMissing::RegisterGraphTestImplicitOutputOnlyMissing()
TEST_F(GraphTest, ImplicitOutputOnlyMissing) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build | out.imp: cat in\n")); fs_.Create("in", ""); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("out.imp"), &err)); ASSERT_EQ("", err); EXPECT_TRUE(GetNode("out.imp")->dirty()); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x1a6d(%rip), %rdi # 0xa7ed0 leaq 0x69741(%rip), %rsi # 0x10fbab callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/graph_test.cc
RegisterGraphTestPathWithCurrentDirectory::RegisterGraphTestPathWithCurrentDirectory()
TEST_F(GraphTest, PathWithCurrentDirectory) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule catdep\n" " depfile = $out.d\n" " command = cat $in > $out\n" "build ./out.o: catdep ./foo.cc\n")); fs_.Create("foo.cc", ""); fs_.Create("out.o.d", "out.o: foo.cc\n"); fs_.Create("out.o", ""); string err; EXP...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x1b4d(%rip), %rdi # 0xa8010 leaq 0x6972b(%rip), %rsi # 0x10fbf5 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/graph_test.cc
GraphTestModifiedImplicit::~GraphTestModifiedImplicit()
TEST_F(GraphTest, ModifiedImplicit) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat in | implicit\n")); fs_.Create("in", ""); fs_.Create("out", ""); fs_.Tick(); fs_.Create("implicit", ""); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("out"), &err)); ASSERT_EQ("", err); // A mo...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa6bb0 movq -0x10(%rbp), %rdi movl $0x228, %esi # imm = 0x228 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestFunkyMakefilePath::~GraphTestFunkyMakefilePath()
TEST_F(GraphTest, FunkyMakefilePath) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule catdep\n" " depfile = $out.d\n" " command = cat $in > $out\n" "build out.o: catdep foo.cc\n")); fs_.Create("foo.cc", ""); fs_.Create("out.o.d", "out.o: ./foo/../implicit.h\n"); fs_.Create("out.o", ""); fs_.Tick(); f...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0xa7a20 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestImplicitOutputOutOfDate::~GraphTestImplicitOutputOutOfDate()
TEST_F(GraphTest, ImplicitOutputOutOfDate) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out | out.imp: cat in\n")); fs_.Create("out.imp", ""); fs_.Tick(); fs_.Create("in", ""); fs_.Create("out", ""); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("out"), &err)); ASSERT_EQ("", err); EX...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0xa7a20 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestImplicitOutputOutOfDate::~GraphTestImplicitOutputOutOfDate()
TEST_F(GraphTest, ImplicitOutputOutOfDate) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out | out.imp: cat in\n")); fs_.Create("out.imp", ""); fs_.Tick(); fs_.Create("in", ""); fs_.Create("out", ""); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("out"), &err)); ASSERT_EQ("", err); EX...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa6d40 movq -0x10(%rbp), %rdi movl $0x228, %esi # imm = 0x228 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestVarInOutPathEscaping::~GraphTestVarInOutPathEscaping()
TEST_F(GraphTest, VarInOutPathEscaping) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build a$ b: cat no'space with$ space$$ no\"space2\n")); Edge* edge = GetNode("a b")->in_edge(); #ifdef _WIN32 EXPECT_EQ("cat no'space \"with space$\" \"no\\\"space2\" > \"a b\"", edge->EvaluateCommand()); #else EXPECT...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa6f20 movq -0x10(%rbp), %rdi movl $0x228, %esi # imm = 0x228 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestRuleVariablesInScope::~GraphTestRuleVariablesInScope()
TEST_F(GraphTest, RuleVariablesInScope) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule r\n" " depfile = x\n" " command = depfile is $depfile\n" "build out: r in\n")); Edge* edge = GetNode("out")->in_edge(); EXPECT_EQ("depfile is x", edge->EvaluateCommand()); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7010 movq -0x10(%rbp), %rdi movl $0x228, %esi # imm = 0x228 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestDepfileOverride::~GraphTestDepfileOverride()
TEST_F(GraphTest, DepfileOverride) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule r\n" " depfile = x\n" " command = unused\n" "build out: r in\n" " depfile = y\n")); Edge* edge = GetNode("out")->in_edge(); EXPECT_EQ("y", edge->GetBinding("depfile")); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7060 movq -0x10(%rbp), %rdi movl $0x228, %esi # imm = 0x228 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestDepfileOverrideParent::~GraphTestDepfileOverrideParent()
TEST_F(GraphTest, DepfileOverrideParent) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule r\n" " depfile = x\n" " command = depfile is $depfile\n" "build out: r in\n" " depfile = y\n")); Edge* edge = GetNode("out")->in_edge(); EXPECT_EQ("depfile is y", edge->GetBinding("command")); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa70b0 movq -0x10(%rbp), %rdi movl $0x228, %esi # imm = 0x228 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestNestedPhonyPrintsDone::~GraphTestNestedPhonyPrintsDone()
TEST_F(GraphTest, NestedPhonyPrintsDone) { AssertParse(&state_, "build n1: phony \n" "build n2: phony n1\n" ); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("n2"), &err)); ASSERT_EQ("", err); Plan plan_; EXPECT_TRUE(plan_.AddTarget(GetNode("n2"), &err)); ASSERT_EQ("", err); EXPECT_EQ(0, plan_...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7100 movq -0x10(%rbp), %rdi movl $0x228, %esi # imm = 0x228 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestDyndepLoadOutputWithMultipleRules1::~GraphTestDyndepLoadOutputWithMultipleRules1()
TEST_F(GraphTest, DyndepLoadOutputWithMultipleRules1) { AssertParse(&state_, "rule r\n" " command = unused\n" "build out1 | out-twice.imp: r in1\n" "build out2: r in2 || dd\n" " dyndep = dd\n" ); fs_.Create("dd", "ninja_dyndep_version = 1\n" "build out2 | out-twice.imp: dyndep\n" ); string err; ASSERT_TR...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0xa7a20 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestDyndepFileCircular::~GraphTestDyndepFileCircular()
TEST_F(GraphTest, DyndepFileCircular) { AssertParse(&state_, "rule r\n" " command = unused\n" "build out: r in || dd\n" " depfile = out.d\n" " dyndep = dd\n" "build in: r circ\n" ); fs_.Create("out.d", "out: inimp\n"); fs_.Create("dd", "ninja_dyndep_version = 1\n" "build out | circ: dyndep\n" ); fs_.Crea...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0xa7a20 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestDyndepFileCircular::~GraphTestDyndepFileCircular()
TEST_F(GraphTest, DyndepFileCircular) { AssertParse(&state_, "rule r\n" " command = unused\n" "build out: r in || dd\n" " depfile = out.d\n" " dyndep = dd\n" "build in: r circ\n" ); fs_.Create("out.d", "out: inimp\n"); fs_.Create("dd", "ninja_dyndep_version = 1\n" "build out | circ: dyndep\n" ); fs_.Crea...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7880 movq -0x10(%rbp), %rdi movl $0x228, %esi # imm = 0x228 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestMissingImplicit::Create()
TEST_F(GraphTest, MissingImplicit) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat in | implicit\n")); fs_.Create("in", ""); fs_.Create("out", ""); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("out"), &err)); ASSERT_EQ("", err); // A missing implicit dep *should* make the output d...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa7930 jmp 0xa78f3 movq -0x18(%rbp), %rax leaq 0xbedc2(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestMissingImplicit::GraphTestMissingImplicit()
TEST_F(GraphTest, MissingImplicit) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat in | implicit\n")); fs_.Create("in", ""); fs_.Create("out", ""); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("out"), &err)); ASSERT_EQ("", err); // A missing implicit dep *should* make the output d...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbb7a4(%rip), %rcx # 0x1630f8 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestModifiedImplicit::Create()
TEST_F(GraphTest, ModifiedImplicit) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat in | implicit\n")); fs_.Create("in", ""); fs_.Create("out", ""); fs_.Tick(); fs_.Create("implicit", ""); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("out"), &err)); ASSERT_EQ("", err); // A mo...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa7ad0 jmp 0xa7a93 movq -0x18(%rbp), %rax leaq 0xbec22(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestModifiedImplicit::GraphTestModifiedImplicit()
TEST_F(GraphTest, ModifiedImplicit) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat in | implicit\n")); fs_.Create("in", ""); fs_.Create("out", ""); fs_.Tick(); fs_.Create("implicit", ""); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("out"), &err)); ASSERT_EQ("", err); // A mo...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbb654(%rip), %rcx # 0x163148 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestFunkyMakefilePath::GraphTestFunkyMakefilePath()
TEST_F(GraphTest, FunkyMakefilePath) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule catdep\n" " depfile = $out.d\n" " command = cat $in > $out\n" "build out.o: catdep foo.cc\n")); fs_.Create("foo.cc", ""); fs_.Create("out.o.d", "out.o: ./foo/../implicit.h\n"); fs_.Create("out.o", ""); fs_.Tick(); f...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbb604(%rip), %rcx # 0x163198 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestExplicitImplicit::Create()
TEST_F(GraphTest, ExplicitImplicit) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule catdep\n" " depfile = $out.d\n" " command = cat $in > $out\n" "build implicit.h: cat data\n" "build out.o: catdep foo.cc || implicit.h\n")); fs_.Create("implicit.h", ""); fs_.Create("foo.cc", ""); fs_.Create("out.o.d", "o...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa7c10 jmp 0xa7bd3 movq -0x18(%rbp), %rax leaq 0xbeae2(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestExplicitImplicit::GraphTestExplicitImplicit()
TEST_F(GraphTest, ExplicitImplicit) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule catdep\n" " depfile = $out.d\n" " command = cat $in > $out\n" "build implicit.h: cat data\n" "build out.o: catdep foo.cc || implicit.h\n")); fs_.Create("implicit.h", ""); fs_.Create("foo.cc", ""); fs_.Create("out.o.d", "o...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbb5b4(%rip), %rcx # 0x1631e8 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestImplicitOutputParse::Create()
TEST_F(GraphTest, ImplicitOutputParse) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out | out.imp: cat in\n")); Edge* edge = GetNode("out")->in_edge(); EXPECT_EQ(2, edge->outputs_.size()); EXPECT_EQ("out", edge->outputs_[0]->path()); EXPECT_EQ("out.imp", edge->outputs_[1]->path()); EXPECT_EQ(1, ed...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa7cb0 jmp 0xa7c73 movq -0x18(%rbp), %rax leaq 0xbea42(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestImplicitOutputParse::GraphTestImplicitOutputParse()
TEST_F(GraphTest, ImplicitOutputParse) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out | out.imp: cat in\n")); Edge* edge = GetNode("out")->in_edge(); EXPECT_EQ(2, edge->outputs_.size()); EXPECT_EQ("out", edge->outputs_[0]->path()); EXPECT_EQ("out.imp", edge->outputs_[1]->path()); EXPECT_EQ(1, ed...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbb564(%rip), %rcx # 0x163238 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestImplicitOutputMissing::Create()
TEST_F(GraphTest, ImplicitOutputMissing) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out | out.imp: cat in\n")); fs_.Create("in", ""); fs_.Create("out", ""); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("out"), &err)); ASSERT_EQ("", err); EXPECT_TRUE(GetNode("out")->dirty()); EXPECT_...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa7d50 jmp 0xa7d13 movq -0x18(%rbp), %rax leaq 0xbe9a2(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestImplicitOutputMissing::GraphTestImplicitOutputMissing()
TEST_F(GraphTest, ImplicitOutputMissing) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out | out.imp: cat in\n")); fs_.Create("in", ""); fs_.Create("out", ""); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("out"), &err)); ASSERT_EQ("", err); EXPECT_TRUE(GetNode("out")->dirty()); EXPECT_...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbb514(%rip), %rcx # 0x163288 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestImplicitOutputOutOfDate::Create()
TEST_F(GraphTest, ImplicitOutputOutOfDate) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out | out.imp: cat in\n")); fs_.Create("out.imp", ""); fs_.Tick(); fs_.Create("in", ""); fs_.Create("out", ""); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("out"), &err)); ASSERT_EQ("", err); EX...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa7df0 jmp 0xa7db3 movq -0x18(%rbp), %rax leaq 0xbe902(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestImplicitOutputOutOfDate::GraphTestImplicitOutputOutOfDate()
TEST_F(GraphTest, ImplicitOutputOutOfDate) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out | out.imp: cat in\n")); fs_.Create("out.imp", ""); fs_.Tick(); fs_.Create("in", ""); fs_.Create("out", ""); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("out"), &err)); ASSERT_EQ("", err); EX...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbb4c4(%rip), %rcx # 0x1632d8 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestImplicitOutputOnlyParse::Create()
TEST_F(GraphTest, ImplicitOutputOnlyParse) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build | out.imp: cat in\n")); Edge* edge = GetNode("out.imp")->in_edge(); EXPECT_EQ(1, edge->outputs_.size()); EXPECT_EQ("out.imp", edge->outputs_[0]->path()); EXPECT_EQ(1, edge->implicit_outs_); EXPECT_EQ(edge, GetN...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa7e90 jmp 0xa7e53 movq -0x18(%rbp), %rax leaq 0xbe862(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestImplicitOutputOnlyParse::GraphTestImplicitOutputOnlyParse()
TEST_F(GraphTest, ImplicitOutputOnlyParse) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build | out.imp: cat in\n")); Edge* edge = GetNode("out.imp")->in_edge(); EXPECT_EQ(1, edge->outputs_.size()); EXPECT_EQ("out.imp", edge->outputs_[0]->path()); EXPECT_EQ(1, edge->implicit_outs_); EXPECT_EQ(edge, GetN...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbb474(%rip), %rcx # 0x163328 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestImplicitOutputOnlyMissing::Create()
TEST_F(GraphTest, ImplicitOutputOnlyMissing) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build | out.imp: cat in\n")); fs_.Create("in", ""); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("out.imp"), &err)); ASSERT_EQ("", err); EXPECT_TRUE(GetNode("out.imp")->dirty()); }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa7f30 jmp 0xa7ef3 movq -0x18(%rbp), %rax leaq 0xbe7c2(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestImplicitOutputOnlyMissing::GraphTestImplicitOutputOnlyMissing()
TEST_F(GraphTest, ImplicitOutputOnlyMissing) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build | out.imp: cat in\n")); fs_.Create("in", ""); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("out.imp"), &err)); ASSERT_EQ("", err); EXPECT_TRUE(GetNode("out.imp")->dirty()); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbb424(%rip), %rcx # 0x163378 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestImplicitOutputOnlyOutOfDate::GraphTestImplicitOutputOnlyOutOfDate()
TEST_F(GraphTest, ImplicitOutputOnlyOutOfDate) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build | out.imp: cat in\n")); fs_.Create("out.imp", ""); fs_.Tick(); fs_.Create("in", ""); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("out.imp"), &err)); ASSERT_EQ("", err); EXPECT_TRUE(GetNode("ou...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbb3d4(%rip), %rcx # 0x1633c8 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestPathWithCurrentDirectory::GraphTestPathWithCurrentDirectory()
TEST_F(GraphTest, PathWithCurrentDirectory) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule catdep\n" " depfile = $out.d\n" " command = cat $in > $out\n" "build ./out.o: catdep ./foo.cc\n")); fs_.Create("foo.cc", ""); fs_.Create("out.o.d", "out.o: foo.cc\n"); fs_.Create("out.o", ""); string err; EXP...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbb384(%rip), %rcx # 0x163418 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc