Skip to content

Commit

Permalink
Fix a test that would fail in the year 2038 (#160)
Browse files Browse the repository at this point in the history
srandom does not need to be positive

tested with:
osc build --vm-type=kvm --clean --noservice --build-opt=--vm-custom-opt="-rtc base=2038-01-25T00:00:00" --alternative-project home:bmwiedemann:reproducible openSUSE_Tumbleweed
  • Loading branch information
Martin Vidner committed Aug 29, 2022
1 parent 598e730 commit f8e753e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libycp/testsuite/tests/builtin/Builtin-Misc.err
Expand Up @@ -44,7 +44,7 @@ Parsed:
----------------------------------------------------------------------
Parsed:
----------------------------------------------------------------------
(srandom () > 1000000000)
(srandom () != nil)
----------------------------------------------------------------------
Parsed:
----------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion libycp/testsuite/tests/builtin/Builtin-Misc.ycp
Expand Up @@ -28,7 +28,7 @@
(random (10) == 1)
(random (10) == 8)

(srandom () > 1000000000)
(srandom () != nil)


("** logging **")
Expand Down

0 comments on commit f8e753e

Please sign in to comment.