print on travis log (#57)

This commit is contained in:
nihui 2024-02-29 21:32:56 +08:00 committed by GitHub
parent 1deb81911a
commit fdead14410
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -4,4 +4,6 @@ os: linux
dist: jammy
arch: [amd64, arm64, ppc64le, s390x]
script: gcc main.c -o ruapu && ./ruapu
script:
- gcc main.c -o ruapu
- ./ruapu

4
main.c
View File

@ -13,7 +13,7 @@ int main()
{
ruapu_init();
#define PRINT_ISA_SUPPORT(isa) fprintf(stderr, "%s = %d\n", #isa, ruapu_supports(#isa));
#define PRINT_ISA_SUPPORT(isa) printf("%s = %d\n", #isa, ruapu_supports(#isa));
#if defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_X64)
PRINT_ISA_SUPPORT(mmx)
@ -116,7 +116,7 @@ int main()
const char* const* supported = ruapu_rua();
while (*supported)
{
fprintf(stderr, "%s\n", *supported);
printf("%s\n", *supported);
supported++;
}