Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTumultuousUnicornOfDarkness committed Jun 11, 2024
1 parent fa06d34 commit 908ead8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ jobs:
- name: Build
run: cmake --build build

# - name: Run cpuid_tool
# run: |
# echo "RAW dump"
# ./build/cpuid_tool/cpuid_tool --save=-
# echo "Report"
# ./build/cpuid_tool/cpuid_tool --all
- name: Run cpuid_tool
run: |
echo "RAW dump"
./build/cpuid_tool/cpuid_tool --save=-
echo "Report"
./build/cpuid_tool/cpuid_tool --all
- name: Run tests
run: |
Expand Down
2 changes: 2 additions & 0 deletions libcpuid/cpuid_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,8 @@ int cpuid_present(void)
unsigned long hwcap = 0;
if (elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap)) == 0)
return ((hwcap & HWCAP_CPUID) != 0);
# elif defined(__MACH__)
return 1; // test
# endif /* HAVE_GETAUXVAL */
/* On AArch64, return 0 by default */
return 0;
Expand Down

0 comments on commit 908ead8

Please sign in to comment.