Tests: Remove Clang workaround from TestSourceLocation

Clang 13 now correctly handles `__builtin_FILE()` and
`-ffile-prefix-map` being specified together, so this test should fully
pass.
This commit is contained in:
Daniel Bertalan 2021-10-02 15:59:42 +02:00 committed by Linus Groh
parent dabd8dbedd
commit 48687c3fbb
Notes: sideshowbarker 2024-07-18 02:14:09 +09:00

View File

@ -15,10 +15,7 @@ TEST_CASE(basic_scenario)
auto location = SourceLocation::current();
EXPECT_EQ(StringView(__FUNCTION__), location.function_name());
EXPECT_EQ(__LINE__ - 2u, location.line_number());
// FIXME: On Clang, __FILE__ is a relative path, while location.path() is absolute
#ifndef __clang__
EXPECT_EQ(StringView(__FILE__), location.filename());
#endif
}
static StringView test_default_arg(const SourceLocation& loc = SourceLocation::current())