Skip to content

[AutoDiff] add negative tests found by random code generator #28219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

marcrasi
Copy link

Checking the testcases in seems so much easier and better than filing JIRA tickets, so here are two checked-in negative tests created by the random code generator.

generated0002.swift of them already has a JIRA ticket https://bugs.swift.org/browse/TF-891.

generated0001.swift is a new discovery today.

@marcrasi marcrasi requested a review from dan-zheng November 13, 2019 00:51
Copy link
Contributor

@dan-zheng dan-zheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Could you please move these tests to the recently created test/AutoDiff/compiler_crashers directory and use the same conventions?

  • Filename has the format tfxxx-short-crash-description.swift, referencing a TF JIRA issue.
  • RUN lines use:
    // RUN: not --crash <command>
    // REQUIRES: asserts

Note: I set up test/AutoDiff/compiler_crashers{,_fixed} based on validation-test/test/compiler_crashers{,_fixed}.

@marcrasi marcrasi force-pushed the add-generated-negative-tests branch from 2736e96 to 310d789 Compare November 13, 2019 20:26
@marcrasi
Copy link
Author

@swift-ci please test tensorflow

@marcrasi marcrasi merged commit 3b934c5 into swiftlang:tensorflow Nov 13, 2019
@marcrasi marcrasi deleted the add-generated-negative-tests branch November 13, 2019 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants