Skip to content

Commit

Permalink
add stub uname default value
Browse files Browse the repository at this point in the history
  • Loading branch information
yuichiro-naito committed Nov 24, 2016
1 parent 1aa052b commit 646bb47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/build.bats 100644 → 100755
Expand Up @@ -204,7 +204,7 @@ OUT
@test "number of CPU cores defaults to 2" {
cached_tarball "ruby-2.0.0"

stub uname '-s : echo Darwin'
stub uname '-s : echo Darwin' false
stub sysctl false
stub_make_install

Expand All @@ -227,7 +227,7 @@ OUT
@test "number of CPU cores is detected on Mac" {
cached_tarball "ruby-2.0.0"

stub uname '-s : echo Darwin'
stub uname '-s : echo Darwin' false
stub sysctl '-n hw.ncpu : echo 4'
stub_make_install

Expand All @@ -251,7 +251,7 @@ OUT
@test "number of CPU cores is detected on FreeBSD" {
cached_tarball "ruby-2.0.0"

stub uname '-s : echo FreeBSD'
stub uname '-s : echo FreeBSD' false
stub sysctl '-n hw.ncpu : echo 1'
stub_make_install

Expand Down Expand Up @@ -324,7 +324,7 @@ OUT
@test "make on FreeBSD 9 defaults to gmake" {
cached_tarball "ruby-2.0.0"

stub uname "-s : echo FreeBSD" "-r : echo 9.1"
stub uname "-s : echo FreeBSD" "-r : echo 9.1" false
MAKE=gmake stub_make_install

MAKE= install_fixture definitions/vanilla-ruby
Expand All @@ -337,7 +337,7 @@ OUT
@test "make on FreeBSD 10" {
cached_tarball "ruby-2.0.0"

stub uname "-s : echo FreeBSD" "-r : echo 10.0-RELEASE"
stub uname "-s : echo FreeBSD" "-r : echo 10.0-RELEASE" false
stub_make_install

MAKE= install_fixture definitions/vanilla-ruby
Expand Down

0 comments on commit 646bb47

Please sign in to comment.