Skip to content

Commit

Permalink
Ensure SDL2 initialized to avoid segfault in CI headless image
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchodias committed Apr 17, 2024
1 parent 25702a1 commit b714ad3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
32 changes: 17 additions & 15 deletions src/BlocBenchs-Tests/BlocBenchsSmokeTest.class.st
Original file line number Diff line number Diff line change
@@ -1,71 +1,73 @@
Class {
#name : 'BlocBenchsSmokeTest',
#superclass : 'TestCase',
#category : 'BlocBenchs-Tests',
#package : 'BlocBenchs-Tests'
#name : #BlocBenchsSmokeTest,
#superclass : #TestCase,
#category : #'BlocBenchs-Tests'
}

{ #category : 'accessing' }
{ #category : #accessing }
BlocBenchsSmokeTest >> defaultTimeLimit [

^ 5 minutes
]

{ #category : 'tests' }
{ #category : #tests }
BlocBenchsSmokeTest >> testAeBenchManySiblingsRunner [

AeBenchFigureGridRunner new run
]

{ #category : 'tests' }
{ #category : #tests }
BlocBenchsSmokeTest >> testBlMouseMoveBenchmark [

BlMouseMoveBenchmark exampleRun
]

{ #category : 'tests' }
{ #category : #tests }
BlocBenchsSmokeTest >> testBlProfileRunner [

BlProfileRunner exampleAll
]

{ #category : 'tests' }
{ #category : #tests }
BlocBenchsSmokeTest >> testPCBenchmarker1 [

PCBenchmarker exampleAllBenchs
]

{ #category : 'tests' }
{ #category : #tests }
BlocBenchsSmokeTest >> testPCBenchmarker2 [

PCBenchmarker exampleAllBenchsWithRaw
]

{ #category : 'tests' }
{ #category : #tests }
BlocBenchsSmokeTest >> testPCBenchmarker3 [

PCBenchmarker exampleProfileCaseWithFlameGraph
]

{ #category : 'tests' }
{ #category : #tests }
BlocBenchsSmokeTest >> testPCOSWindowScrollingExample1 [

PCOSWindowScrollingExample new
beFlatScrolling;
open
]

{ #category : 'tests' }
{ #category : #tests }
BlocBenchsSmokeTest >> testPCOSWindowScrollingExample2 [

PCOSWindowScrollingExample new
beInertialScrolling;
open
]

{ #category : 'tests' }
{ #category : #tests }
BlocBenchsSmokeTest >> testSDLShapedWindowExample [

OSPlatform current isMacOS ifTrue: [
OSPlatform current isMacOS ifTrue: [
"Ensure initialized to avoid segfault in CI headless image"
OSSDL2Driver current.

SDLShapedWindowExample exampleByColorKey ]
]
2 changes: 1 addition & 1 deletion src/BlocBenchs-Tests/package.st
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Package { #name : 'BlocBenchs-Tests' }
Package { #name : #'BlocBenchs-Tests' }

0 comments on commit b714ad3

Please sign in to comment.