libtracefs: Add unit test to test mounting of tracefs_{tracing,debug}_dir()

As there was a regression with the mounting of the tracefs and debugfs
file systems when tracefs_tracing_dir() and tracefs_debug_dir() were
called, add a unit test to make sure they continue to work.

Link: https://lore.kernel.org/linux-trace-devel/20221208114716.3af0d147@gandalf.local.home

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2 files changed