@@ 512-527 (lines=16) @@ | ||
509 | if 'compiler_error' in r: |
|
510 | if 'undefined reference to `init_unit_test_suite' in r['compiler_error']: |
|
511 | print('hint:') |
|
512 | print(' If you do not use boost test, please specify the file with the main function first.') |
|
513 | ||
514 | ||
515 | # show result |
|
516 | def show_result(r, options): |
|
517 | if 'error' in r: |
|
518 | print(r['error']) |
|
519 | sys.exit(1) |
|
520 | if options.stderr: |
|
521 | if 'compiler_output' in r: |
|
522 | print('compiler_output:') |
|
523 | print(r['compiler_output'].encode('utf_8')) |
|
524 | if 'compiler_error' in r: |
|
525 | sys.stderr.write(r['compiler_error'].encode('utf_8')) |
|
526 | if 'program_output' in r: |
|
527 | print('program_output:') |
|
528 | print(r['program_output'].encode('utf_8')) |
|
529 | if options.xml is None and options.junit is None and 'program_error' in r: |
|
530 | sys.stderr.write(r['program_error'].encode('utf_8')) |
|
@@ 531-545 (lines=15) @@ | ||
528 | print(r['program_output'].encode('utf_8')) |
|
529 | if options.xml is None and options.junit is None and 'program_error' in r: |
|
530 | sys.stderr.write(r['program_error'].encode('utf_8')) |
|
531 | else: |
|
532 | if 'compiler_message' in r: |
|
533 | print('compiler_message:') |
|
534 | print(r['compiler_message'].encode('utf_8')) |
|
535 | if 'program_message' in r: |
|
536 | print('program_message:') |
|
537 | print(r['program_message'].encode('utf_8')) |
|
538 | if 'url' in r: |
|
539 | print('permlink: ' + r['permlink']) |
|
540 | print('url: ' + r['url']) |
|
541 | if 'signal' in r: |
|
542 | print('signal: ' + r['signal']) |
|
543 | wandbox_hint(r) |
|
544 | ||
545 | if 'status' in r: |
|
546 | return int(r['status']) |
|
547 | return 1 |
|
548 |