MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / TestGetExecutableFilename

Function TestGetExecutableFilename

src/twtest/unixfsservices_t.cpp:181–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181void TestGetExecutableFilename()
182{
183 if (-1 == access("/bin/sh", F_OK))
184 skip("/bin/sh not found/accessible");
185
186 TSTRING filename = _T("sh");
187 TSTRING fullpath = _T("/bin/");
188 TEST(iFSServices::GetInstance()->GetExecutableFilename(fullpath, filename));
189
190 filename = _T("/bin/sh");
191 TEST(iFSServices::GetInstance()->GetExecutableFilename(fullpath, filename));
192}
193
194void TestRename()
195{

Callers

nothing calls this directly

Calls 2

skipFunction · 0.85
GetExecutableFilenameMethod · 0.80

Tested by

no test coverage detected