Skip to content

Conversation

@dettonijr
Copy link
Member

No description provided.

tests/test_fsm.c Outdated

s = suite_create("Libpico");

// Base64 test case
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy-paste error (not really Base64 test cases).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

tests/test_fsm.c Outdated

// We have to duplicate the objects because fsmpico tries to delete them later
cryptosupport_getprivateder(picoIdSKey, picoIdDer);
fsmpico_start(pico,
Copy link
Member

@llewelld llewelld Feb 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All parameters should be on a single line to match the rest of the code.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Member

@llewelld llewelld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you manage to fix the temperamental test result? You mentioned it would occasionally fail randomly.

If so, it all looks good to me.

@dettonijr
Copy link
Member Author

I finally fixed the temperamental error.. It was a bit tricky.

When adding/removing something to the event queue using push_event I have a mutex to control the access (

pthread_mutex_lock(&queue_mutex);
), however, the current head of the queue might have been updated before getting to the mutex lock in that function. Then queue_head (copy of the actual pointer) would be invalid.

Now it is fixed. I will merge this

@dettonijr dettonijr merged commit acd1e6e into master Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants