Lines Matching refs:eth
111 ExecTestHelper eth; in TEST() local
112 eth.SetArgs({ path_to_linker, nullptr }); in TEST()
113 eth.Run([&]() { execve(path_to_linker, eth.GetArgs(), eth.GetEnv()); }, 0, nullptr); in TEST()
114 ASSERT_EQ(0u, eth.GetOutput().find(usage_prefix)) << "Test output:\n" << eth.GetOutput(); in TEST()
127 ExecTestHelper eth; in TEST() local
128 eth.SetArgs({ path_to_linker, helper.c_str(), nullptr }); in TEST()
129 eth.Run([&]() { execve(path_to_linker, eth.GetArgs(), eth.GetEnv()); }, 0, nullptr); in TEST()
130 ASSERT_EQ(expected_output, eth.GetOutput()); in TEST()
144 ExecTestHelper eth; in TEST() local
145 eth.SetArgs({ path_to_linker, helper.c_str(), nullptr }); in TEST()
146 eth.Run([&]() { execve(path_to_linker, eth.GetArgs(), eth.GetEnv()); }, 0, nullptr); in TEST()
147 ASSERT_EQ(expected_output, eth.GetOutput()); in TEST()
155 ExecTestHelper eth; in TEST() local
156 eth.SetArgs({ path_to_linker, path_to_linker, nullptr }); in TEST()
157 …eth.Run([&]() { execve(path_to_linker, eth.GetArgs(), eth.GetEnv()); }, EXIT_FAILURE, error_messag… in TEST()
165 ExecTestHelper eth; in TEST() local
166 eth.SetArgs({ helper.c_str(), nullptr }); in TEST()
167 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, nullptr); in TEST()
175 ExecTestHelper eth; in TEST() local
176 eth.SetArgs({ helper.c_str(), nullptr }); in TEST()
177 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, nullptr); in TEST()
188 ExecTestHelper eth; in TEST() local
189 eth.SetArgs({ helper.c_str(), nullptr }); in TEST()
190 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, "12345"); in TEST()
198 ExecTestHelper eth; in TEST() local
199 eth.SetArgs({ helper.c_str(), nullptr }); in TEST()
200 eth.SetEnv({ env.c_str(), nullptr }); in TEST()
206 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, "54321"); in TEST()
225 ExecTestHelper eth; in TEST() local
226 eth.SetArgs({ helper.c_str(), nullptr }); in TEST()
227 …eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, EXIT_FAILURE, error_messag… in TEST()
281 ExecTestHelper eth; in TEST() local
282 eth.SetArgs({ helper.c_str(), nullptr }); in TEST()
283 eth.SetEnv({ env.c_str(), nullptr }); in TEST()
284 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, in TEST()
317 ExecTestHelper eth; in TEST() local
318 eth.SetArgs({ helper.c_str(), nullptr }); in TEST()
319 eth.SetEnv({ env.c_str(), env2.c_str(), nullptr }); in TEST()
320 eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, 0, in TEST()
356 ExecTestHelper eth; in TEST() local
357 eth.SetArgs({ helper.c_str(), nullptr }); in TEST()
358 eth.SetEnv({ env.c_str(), nullptr }); in TEST()
359 …eth.Run([&]() { execve(helper.c_str(), eth.GetArgs(), eth.GetEnv()); }, EXIT_FAILURE, error_messag… in TEST()
367 ExecTestHelper eth; in RelocationsTest() local
368 eth.SetArgs({ "readelf", "-SW", path.c_str(), nullptr }); in RelocationsTest()
369 eth.Run([&]() { execvpe("readelf", eth.GetArgs(), eth.GetEnv()); }, 0, nullptr); in RelocationsTest()
371 ASSERT_TRUE(std::regex_search(eth.GetOutput(), std::regex(expectation))) << eth.GetOutput(); in RelocationsTest()