Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • L libcacard
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • spice
  • libcacard
  • Issues
  • #3
Closed
Open
Issue created Jul 23, 2019 by Jakub Jelen@jjelenMaintainer

Non-deterministic test test_gp_applet()

The test test_gp_applet() is non-deterministic since it depends on the hash of the first certificate not machine neither of the 6 bytes in the example blob. I think we should find a better way to test this:

    /* This part should be generate from certificate hash, which should
     * overwrite default values in template */
    g_assert_cmpint(pbRecvBuffer[15], !=, 0x00);
    g_assert_cmpint(pbRecvBuffer[16], !=, 0x19);
    g_assert_cmpint(pbRecvBuffer[17], !=, 0x00);
    g_assert_cmpint(pbRecvBuffer[18], !=, 0x52);
    g_assert_cmpint(pbRecvBuffer[19], !=, 0x89);
    g_assert_cmpint(pbRecvBuffer[20], !=, 0x0E);

https://gitlab.freedesktop.org/spice/libcacard/blob/master/tests/common.c#L940

Assignee
Assign to
Time tracking