yanson694 / shflags

Automatically exported from code.google.com/p/shflags
0 stars 0 forks source link

Unit test testStandardHelpOutput fails on OS X Lion #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run shflags-1.0.3/src$ ./shflags_test_public.sh
2. Test testStandardHelpOutput fails

What is the expected output? What do you see instead?
Expect all tests to pass
I changed line 91 in the file above so that the diff output is sent to stdout 
instead of /dev/null
From that it appears that the line wrapping expected by the test is not 
occurring:
6,9c6,7
<   -D  testing of a long description to force wrap of default value
<       (default: 'blah')
<   -F  testing of long default value
<       (default: 'this_is_a_long_default_value_to_force_alternate_indentation')

---
>   -D  testing of a long description to force wrap of default value (default: 
'blah')
>   -F  testing of long default value (default: 
'this_is_a_long_default_value_to_force_alternate_indentation')
ASSERT:unexpected help output

What version of the product are you using? On what operating system?
shflags 1.0.3 on Mac OS X Lion 10.7.2 (11C74)

Please provide any additional information below.
Thanks for creating and sharing this and your other shell libraries, great work!

Original issue reported on code.google.com by jeff.cal...@gmail.com on 28 Nov 2011 at 11:33

GoogleCodeExporter commented 9 years ago
In r155 I added a mock_flags_columns() method do the shflags_test_public.sh so 
the help output would always be generated for 80 column output, which the test 
was testing for.

Original comment by kate.w...@forestent.com on 6 Jan 2013 at 4:41