From 389ec11a589c26983b6977d15dcdcc5b6de62115 Mon Sep 17 00:00:00 2001 From: cutealien Date: Sat, 24 Sep 2022 13:55:03 +0000 Subject: [PATCH] Add comment when running tests on Linux how to see results Thanks @juozas for mentioning this (https://irrlicht.sourceforge.io/forum/viewtopic.php?p=306758#p306758) git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6426 dfc29bdd-3216-0410-991c-e03cc46cb475 --- tests/main.cpp | 5 ++++- tests/tests-last-passed-at.txt | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/main.cpp b/tests/main.cpp index 6becc7c3..9242ec53 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -246,7 +246,10 @@ int main(int argumentCount, char * arguments[]) #ifdef _IRR_WINDOWS_ (void)system("tests.log"); #else - (void)system("$PAGER tests.log"); + if ( getenv("PAGER") ) + (void)system("$PAGER tests.log"); + else + printf("See tests.log for results. Or set $PAGER environment variable to show it directly.\n"); #endif return fails; } diff --git a/tests/tests-last-passed-at.txt b/tests/tests-last-passed-at.txt index fde0c2e8..f3aceffd 100644 --- a/tests/tests-last-passed-at.txt +++ b/tests/tests-last-passed-at.txt @@ -1,4 +1,4 @@ Tests finished. 72 tests of 72 passed. Compiled as DEBUG -Test suite pass at GMT Thu Sep 15 20:10:06 2022 +Test suite pass at GMT Sat Sep 24 13:51:42 2022