test s390x sm2 functions first

This commit is contained in:
Sun Yimin 2024-08-26 15:44:13 +08:00 committed by GitHub
parent 626cf9cfed
commit a85384aca6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 7 deletions

View File

@ -29,12 +29,14 @@ jobs:
- name: Check out code
uses: actions/checkout@v4
- name: Test SM2
run: go test -v -short ./sm2/...
env:
GOARCH: ${{ matrix.arch }}
- name: Test KDF
run: go test -v -short ./kdf/...
env:
GOARCH: ${{ matrix.arch }}
- name: Test SM2
run: go test -v -short ./sm2/...
env:
GOARCH: ${{ matrix.arch }}

View File

@ -56,9 +56,14 @@ func TestKdfOldCase(t *testing.T) {
func shouldPanic(t *testing.T, f func()) {
t.Helper()
defer func() { _ = recover() }()
defer func() {
t.Helper()
err := recover()
if err == nil {
t.Errorf("should have panicked")
}
}()
f()
t.Errorf("should have panicked")
}
func TestKdfWithSHA256(t *testing.T) {