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
This commit is contained in:
cutealien 2022-09-24 13:55:03 +00:00
parent 1803413b49
commit 389ec11a58
2 changed files with 5 additions and 2 deletions

View File

@ -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;
}

View File

@ -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