mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-07-03 08:10:31 +02:00
Sort goops class precedence tests to have a more reproducible check-guile.log
The GOOPS class precedence tests had been running in random order. This sorts the tests before execution. * test-suite/tests/goops.test ("class-precedence-list"): sort tests
This commit is contained in:
parent
196f6fca44
commit
83cf9fa5c4
1 changed files with 8 additions and 4 deletions
|
@ -121,10 +121,14 @@
|
|||
(let rec ((class <top>))
|
||||
(hash-create-handle! table class #f)
|
||||
(for-each rec (class-direct-subclasses class)))
|
||||
(hash-fold (lambda (class ignore classes)
|
||||
(cons class classes))
|
||||
'()
|
||||
table))))
|
||||
(sort
|
||||
(hash-fold (lambda (class ignore classes)
|
||||
(cons class classes))
|
||||
'()
|
||||
table)
|
||||
(lambda (a b)
|
||||
(string<? (symbol->string (class-name a))
|
||||
(symbol->string (class-name b))))))))
|
||||
)
|
||||
|
||||
(with-test-prefix "classes for built-in types"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue