Skip to content

Commit

Permalink
Merge pull request #11 from lslezak/timesting_testsuite_fix
Browse files Browse the repository at this point in the history
Disable a timestring() test
  • Loading branch information
jreidinger committed May 9, 2013
2 parents cfc6eea + f27e677 commit 13c19b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/ruby/builtins_test.rb
Expand Up @@ -181,7 +181,9 @@ def test_tohexstring
def test_timestring
assert_equal nil, YCP::Builtins.timestring(nil, nil, nil)

assert_equal "Mon May 6 13:29:56 2013", YCP::Builtins.timestring("%c", 1367839796, false)
# disabled: system dependent (depends on the current system time zone),
# fails if the current offset is not UTC+2:00
# assert_equal "Mon May 6 13:29:56 2013", YCP::Builtins.timestring("%c", 1367839796, false)
assert_equal "Mon May 6 11:29:56 2013", YCP::Builtins.timestring("%c", 1367839796, true)
assert_equal "20130506", YCP::Builtins.timestring("%Y%m%d", 1367839796, false)
end
Expand Down

0 comments on commit 13c19b5

Please sign in to comment.