Skip to content

It looks like some test inputs for the demangle test are being ignored. #67616

Open
@oozoofrog

Description

@oozoofrog

Description
may be its not bug, may be it.
I was analyzing the contents of swift/test/Demangle and I came across some test inputs and check statements that don't appear to be tested by the script in demangle.swift.

$s7example1fyyYaF -> example.f() async -> ()
$s7example1fyyYaKF -> example.f() async throws -> ()
s7example1fyyYjfYaKF -> example.f@differentiable(_forward) () async throws -> ()
s7example1fyyYjrYaKF -> example.f@differentiable(reverse) () async throws -> ()
s7example1fyyYjdYaKF -> example.f@differentiable () async throws -> ()
s7example1fyyYjlYaKF -> example.f@differentiable(_linear) () async throws -> ()

above lines have all -> not --->

Steps to reproduce
remove all other test case and only remain -> lines, and start test.

test passed

Expected behavior
modify -> to --->

$s7example1fyyYaF ---> example.f() async -> ()
$s7example1fyyYaKF ---> example.f() async throws -> ()
s7example1fyyYjfYaKF ---> example.f@differentiable(_forward) () async throws -> ()
s7example1fyyYjrYaKF ---> example.f@differentiable(reverse) () async throws -> ()
s7example1fyyYjdYaKF ---> example.f@differentiable () async throws -> ()
s7example1fyyYjlYaKF ---> example.f@differentiable(_linear) () async throws -> ()

test failed like

--
3,6c3,6
< example.f@differentiable(_forward) () async throws -> ()
< example.f@differentiable(reverse) () async throws -> ()
< example.f@differentiable () async throws -> ()
< example.f@differentiable(_linear) () async throws -> ()
---
> s7example1fyyYjfYaKF
> s7example1fyyYjrYaKF
> s7example1fyyYjdYaKF
> s7example1fyyYjlYaKF

--

********************
********************
Failed Tests (1):
  Swift(macosx-arm64) :: Demangle/demangle.swift


Testing Time: 0.29s
  Excluded: 8472
  Passed  :    1
  Failed  :    1

Environment

  • Swift 5.8.1
  • Xcode 14.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfswift 5.9test suiteArea: test suite

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions