Return success if not running on SGX in sgx_get_att_quote test
Otherwise this test will spuriously fail on other platforms.
#include "libc.h"
+#include "enarx.h"
#include <errno.h>
/* This test will be run only for SGX. It is designed to request a
@@ -18,7 +19,11 @@ int main(void) {
ssize_t size = get_att(nonce, sizeof(nonce), buf, sizeof(buf), &technology);
- if ((size < 0) || (technology != 2))
+ /* this test is SGX-specific, so just return success if not running on SGX */
+ if (technology != TEE_SGX)
+ return 0;
+
+ if (size < 0)
return 1;
for (i = 0; i < 3; i++) {
