From 48687c3fbb3083d364b1257c3c000e4860b2fb48 Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Sat, 2 Oct 2021 15:59:42 +0200 Subject: 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. --- Tests/AK/TestSourceLocation.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'Tests/AK/TestSourceLocation.cpp') diff --git a/Tests/AK/TestSourceLocation.cpp b/Tests/AK/TestSourceLocation.cpp index f41e5674e3..8fc7f97426 100644 --- a/Tests/AK/TestSourceLocation.cpp +++ b/Tests/AK/TestSourceLocation.cpp @@ -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()) -- cgit v1.2.3