- Timestamp:
- 09/27/10 19:35:17 (20 months ago)
- Files:
-
- 1 modified
-
trunk/src/mgunit.pro (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mgunit.pro
r101 r102 1 1 ; docformat = 'rst' 2 3 ;+ 4 ; Determines if the current terminal is a TTY, calling `MG_TERMISTTY` safely 5 ; even if cmdline_tools is not installed or built. 6 ; 7 ; :Returns: 8 ; 1 if current term is a TTY, 0 if not 9 ;- 10 function mgunit_findIfTty 11 compile_opt strictarr, hidden 12 13 catch, error 14 if (error ne 0L) then begin 15 catch, /cancel 16 return, 0 17 endif 18 19 return, mg_termIsTty() 20 end 21 2 22 3 23 ;+ … … 43 63 else: runnerName = 'MgutCliRunner' 44 64 endcase 45 65 66 _color = keyword_set(color) || mgunit_findIfTty() 67 help, color, mgunit_findIfTty(), _color 68 46 69 if (n_elements(tests) gt 0) then begin 47 70 testRunner = obj_new('MGutCompoundRunner') … … 55 78 56 79 testRunner->add, obj_new(runnerName, parent=testRunner, $ 57 filename=filename, color= color, $80 filename=filename, color=_color, $ 58 81 test_suite=testsuite) 59 82
