Skip to content

Commit

Permalink
Add pre-release banner unless in test suite
Browse files Browse the repository at this point in the history
Adding a banner indicating that this is a pre-release that offers
limited functionality.  Suppress the banner when the test suite is
being run.

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Signed-off-by: Eugene Loh <eugene.loh@oracle.com>
Reviewed-by: Nick Alcock <nick.alcock@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
  • Loading branch information
kvanhees committed Jun 7, 2023
1 parent 688d17b commit 2d70c0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/dtrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,11 @@ main(int argc, char *argv[])

g_pname = basename(argv[0]);

/* Temporary banner. */
if (getenv("_DTRACE_TESTING") == NULL)
printf("DTrace %s [Pre-Release with limited functionality]\n",
_DT_VERSION);

if (argc == 1)
return usage(stderr);

Expand Down

0 comments on commit 2d70c0b

Please sign in to comment.