Skip to content

Commit

Permalink
Add SKIP_ON_S390_LINUX macros and use them in LinkageTest.cpp
Browse files Browse the repository at this point in the history
These helper macros will skip tests based on architecture and operating
system combinations.

Signed-off-by: Filip Jeremic <fjeremic@ca.ibm.com>
  • Loading branch information
fjeremic committed Mar 31, 2020
1 parent fa96327 commit cf60a96
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 140 deletions.
27 changes: 27 additions & 0 deletions fvtest/compilertriltest/JitTest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,20 @@ class SkipHelper
#define SKIP_ON_S390(reason) \
SKIP_ON(OMRPORT_ARCH_S390, reason)

/*
* @brief A macro to allow a test to be conditionally skipped on S390 running under the Linux operating system.
*
* The basic syntax for using this macro is:
*
* SKIP_ON_S390_LINUX(<reason>) << <message>;
*
*/
#define SKIP_ON_S390_LINUX(reason) \
switch (0) case 0: default: /* guard against ambiguous else */ \
if (strcmp("Linux", omrsysinfo_get_OS_type()) != 0) { /* allow test to proceed normally */ } \
else \
SKIP_ON(OMRPORT_ARCH_S390X, reason)

/*
* @brief A macro to allow a test to be conditionally skipped on S390X
*
Expand All @@ -702,6 +716,19 @@ class SkipHelper
#define SKIP_ON_S390X(reason) \
SKIP_ON(OMRPORT_ARCH_S390X, reason)

/*
* @brief A macro to allow a test to be conditionally skipped on S390X running under the Linux operating system.
*
* The basic syntax for using this macro is:
*
* SKIP_ON_S390X_LINUX(<reason>) << <message>;
*
*/
#define SKIP_ON_S390X_LINUX(reason) \
switch (0) case 0: default: /* guard against ambiguous else */ \
if (strcmp("Linux", omrsysinfo_get_OS_type()) != 0) { /* allow test to proceed normally */ } \
else \
SKIP_ON(OMRPORT_ARCH_S390X, reason)

/*
* @brief A macro to allow a test to be conditionally skipped on AMD64
Expand Down
Loading

0 comments on commit cf60a96

Please sign in to comment.