def METHOD_NAME(self, test, litConfig):
    testPath,testName = os.path.split(test.getSourcePath())
    while not os.path.exists(testPath):
        # Handle GTest parametrized and typed tests, whose name includes
        # some '/'s.
        testPath, namePrefix = os.path.split(testPath)
        testName = namePrefix + '/' + testName
    cmd = [testPath, '--gtest_filter=' + testName]
    if litConfig.useValgrind:
        cmd = litConfig.valgrindArgs + cmd
    if litConfig.noExecute:
        return lit.Test.PASS, ''
    out, err, exitCode = lit.util.executeCommand(
        cmd, env=test.config.environment)
    if exitCode:
        return lit.Test.FAIL, out + err
    passing_test_line = '[  PASSED  ] 1 test.'
    if passing_test_line not in out:
        msg = ('Unable to find %r in gtest output:\n\n%s%s' %
               (passing_test_line, out, err))
        return lit.Test.UNRESOLVED, msg
    return lit.Test.PASS,''