#NEWLINE# def test_benchmark_with_benchmem_flag( self ) : #NEWLINE# #INDENT# ensure_not_ui_thread ( ) #NEWLINE# file_path = path . join ( TEST_GOPATH , 'src' , 'good' , 'rune_len.go' ) #NEWLINE# def _run_build( view , result_queue ) : #NEWLINE# #INDENT# view . window ( ) . run_command ( 'golang_build' , { #NEWLINE# #INDENT# 'task' : 'benchmark' , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# custom_view_settings = VIEW_SETTINGS . copy ( ) #NEWLINE# custom_view_settings [ 'benchmark:flags' ] = [ '-benchmem' ] #NEWLINE# result_queue = open_file ( file_path , custom_view_settings , self ) #NEWLINE# result = wait_build ( result_queue ) #NEWLINE# self . assertEqual ( 'success' , result ) #NEWLINE# self . assertTrue ( confirm_user ( 'Did "go test" succeed running benchmarks with memory allocation stats?' ) )