Skip to content

Commit 87aaee2

Browse files
committed
sdl: cpuinfo_test.go: Run TestGetSystemRAM only on SDL >= 2.0.1
Signed-off-by: Lilis Iskandar <[email protected]>
1 parent d487864 commit 87aaee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdl/cpuinfo_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func TestGetCPUCacheLineSize(t *testing.T) {
1818
}
1919

2020
func TestGetSystemRAM(t *testing.T) {
21-
if GetSystemRAM() <= 0 {
21+
if VERSION_ATLEAST(2,0,1) && GetSystemRAM() <= 0 {
2222
t.Error("GetSystemRAM(): wrong return value")
2323
}
2424
}

0 commit comments

Comments
 (0)