mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-02 16:25:34 +03:00
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:
parent
dabd8dbedd
commit
48687c3fbb
Notes:
sideshowbarker
2024-07-18 02:14:09 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/48687c3fbb3 Pull-request: https://github.com/SerenityOS/serenity/pull/9378 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/itamar8910 Reviewed-by: https://github.com/linusg ✅ Reviewed-by: https://github.com/nico Reviewed-by: https://github.com/timschumi
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user