aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/isatty_test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* test: Fix potential resource leakMartin Anderseck2021-08-041-5/+4
| | | | | | | Fixed issue where variable tmp_file going out of scope could have leaked the storage it points to. Replaced the declaration of tmp_file by using a unique pointer with custom deleter that takes care of closing the tmpfile when it is not needed anymore.
* uhd: Apply clang-format against all .cpp and .hpp files in host/Martin Braun2020-03-031-2/+1
| | | | | Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of files that clang-format gets applied against.
* lib: utils: Add is_a_tty()Martin Braun2019-10-071-0/+32
This is a portable version of POSIX's isatty(). Windows has its own version, called _isatty(). UHD thus gains its own, portable version. The underscores aren't beautiful, but they're necessary so we can distinguish the POSIX version from the UHD version.