Skip to content

Commit

Permalink
mpdecimal: don't run tests if random is missing
Browse files Browse the repository at this point in the history
random() is needed for tests.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Dec 3, 2023
1 parent 9aafb3a commit c541d13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -2102,6 +2102,7 @@
"mpdecpp"
],
"versions": [
"2.5.1-4",
"2.5.1-3",
"2.5.1-2",
"2.5.1-1",
Expand Down
5 changes: 5 additions & 0 deletions subprojects/packagefiles/mpdecimal/tests/meson.build
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#Windows does not have random
if not cc.has_function('random')
subdir_done()
endif

runtest = executable(
'runtest',
['runtest.c', 'test.c'],
Expand Down

0 comments on commit c541d13

Please sign in to comment.