Skip to content

Commit

Permalink
Report OS/arch info by gctest
Browse files Browse the repository at this point in the history
OS_TYPE and MACH_TYPE values are printed by tools/setjmp_t.
Now, gctest prints them too for convenience.

* tests/gctest.c (enable_incremental_mode): Print OS_TYPE/MACH_TYPE
values.
  • Loading branch information
ivmai committed Oct 18, 2024
1 parent ed7cdb6 commit 4b0d5ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/gctest.c
Original file line number Diff line number Diff line change
Expand Up @@ -2254,7 +2254,10 @@ enable_incremental_mode(void)
{
#ifndef NO_INCREMENTAL
unsigned vdbs = GC_get_supported_vdbs();
#endif

GC_printf("Running on " OS_TYPE "/" MACH_TYPE " target\n");
#ifndef NO_INCREMENTAL
if (vdbs != GC_VDB_NONE)
GC_printf(
"Supported VDBs:%s%s%s%s%s%s\n", vdbs & GC_VDB_MANUAL ? " manual" : "",
Expand Down

0 comments on commit 4b0d5ab

Please sign in to comment.