Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: skip tcti-spidev on 32bit architectures with 64bit time_t #2904

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions test/unit/tcti-spidev.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
struct timeval;
struct timezone;

#define LOGMODULE tests
#include "util/log.h"

#define EXIT_SKIP 77

typedef enum {
TPM_DID_VID_HEAD = 0,
TPM_DID_VID_DATA,
Expand Down Expand Up @@ -206,6 +211,12 @@ int
main (int argc,
char *argv[])
{
#if __SIZEOF_POINTER__ == 4 && _TIME_BITS == 64
// Would produce cmocka error
LOG_WARNING("_TIME_BITS == 64 would produce cmocka errors on this platform.");
return EXIT_SKIP;
#endif

const struct CMUnitTest tests[] = {
cmocka_unit_test (tcti_spi_init_test),
};
Expand Down