Skip to content

Commit 6d0600c

Browse files
committed
#15 uses getconf PAGESIZE instead of pagesize command
1 parent 26d35de commit 6d0600c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

spec/vmstat/procfs_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def self.procfs_path
3030
subject { procfs.memory }
3131

3232
it { should be_a(Vmstat::Memory) }
33-
if `pagesize`.chomp.to_i == 4096
33+
if `getconf PAGESIZE`.chomp.to_i == 4096
3434
it do
3535
should == Vmstat::Memory.new(4096, 4906, 6508, 8405, 107017, 64599, 1104)
3636
end
@@ -69,7 +69,7 @@ def self.procfs_path
6969
subject { procfs.task }
7070

7171
it { should be_a(Vmstat::Task) }
72-
if `pagesize`.chomp.to_i == 4096
72+
if `getconf PAGESIZE`.chomp.to_i == 4096
7373
it { should == Vmstat::Task.new(4807, 515, 2000, 0) }
7474
end
7575
end

spec/vmstat/solaris_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def c.`(cmd)
249249
subject { solaris.memory }
250250

251251
it { should be_a(Vmstat::Memory) }
252-
if `pagesize`.chomp.to_i == 4096
252+
if `getconf PAGESIZE`.chomp.to_i == 4096
253253
it do
254254
should == Vmstat::Memory.new(4096, 409145, 9018, 0, 61103, 0, 0)
255255
end

0 commit comments

Comments
 (0)