original_docstring: Verify that Valgrind works properly (Linux 64-bit only)
docstring: Verify that Valgrind works properly (Linux 64-bit only)
docstring_tokens: Verify that Valgrind works properly ( Linux 64 - bit only )
code: def deprecatedTestValgrind(self):
        '''Verify that Valgrind works properly (Linux 64-bit only)'''
  
        bit_widths = build_utils.SupportedNexeBitWidths()
        if (not sys.platform.startswith('linux')) or (64 not in bit_widths):
          annotator.Print('Not running on 64-bit Linux -- skip')
          return
        true_basename = os.path.join(_outdir, 'true')
        true_c_filename = '%s.c' % true_basename
        true_nexe_filename = '%s.nexe' % true_basename
        with open(true_c_filename, 'w') as true_file:
          true_file.write('int main(void) { return 0; }\n')
        annotator.Run([gcc64, '-o', true_nexe_filename, '-m64', '-O0',
                       '-Wl,-u,have_nacl_valgrind_interceptors', '-g',
                       true_c_filename, '-lvalgrind'])
        memcheck = os.path.join(_outdir, 'third_party', 'valgrind', 'memcheck.sh')
        annotator.Run([memcheck, sel_ldr64,
                       # The -B flag is needed by sel_ldr to find an Integrated
                       # Runtime that it can use to run .nexes.
                       '-B', irt_core64,
                       '-Q', true_nexe_filename])
code_tokens: def deprecatedTestValgrind ( self ) : bit_widths = build_utils . SupportedNexeBitWidths ( ) if ( not sys . platform . startswith ( 'linux' ) ) or ( 64 not in bit_widths ) : annotator . Print ( 'Not running on 64-bit Linux -- skip' ) return true_basename = os . path . join ( _outdir , 'true' ) true_c_filename = '%s.c' % true_basename true_nexe_filename = '%s.nexe' % true_basename with open ( true_c_filename , 'w' ) as true_file : true_file . write ( 'int main(void) { return 0; }\n' ) annotator . Run ( [ gcc64 , '-o' , true_nexe_filename , '-m64' , '-O0' , '-Wl,-u,have_nacl_valgrind_interceptors' , '-g' , true_c_filename , '-lvalgrind' ] ) memcheck = os . path . join ( _outdir , 'third_party' , 'valgrind' , 'memcheck.sh' ) annotator . Run ( [ memcheck , sel_ldr64 , '-B' , irt_core64 , '-Q' , true_nexe_filename ] )
short_docstring: Verify that Valgrind works properly (Linux 64-bit only)
short_docstring_tokens: Verify that Valgrind works properly ( Linux 64 - bit only )
comment: '''Verify that Valgrind works properly (Linux 64-bit only)'''$SEP$# The -B flag is needed by sel_ldr to find an Integrated$SEP$# Runtime that it can use to run .nexes.