Skip to content
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

resurrect compiler_builtins_tests for compiler builtins host functions #640

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

spoonincode
Copy link
Member

Resurrect compiler_builtins_tests removed in bedf133. This test is exercising host functions in spring so it does belong here in spring. Removal of these tests lost coverage for host function behavior such as

EOS_ASSERT(rhs != 0, arithmetic_exception, "divide by zero");

(afaict anyways, maybe there is some other test somewhere I missed)

Co-authored-by: Bucky Kittinger <larrykittinger@gmail.com>

#include "test_api.hpp"

//these are no longer exposed in cdt
Copy link
Member Author

Choose a reason for hiding this comment

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

Similarly, we need to explicitly call the host functions so we know we're actually testing the host functions. It's possible future cdt versions won't ever implicitly call the host functions given something like

__int128 a = 0, b = 0;
a/b;

@spoonincode spoonincode merged commit 1d9177f into main Aug 27, 2024
36 checks passed
@spoonincode spoonincode deleted the test_api_compiler_builtins branch August 27, 2024 00:42
@ericpassmore
Copy link
Contributor

Note:start
group: STABILITY
category: TEST
summary: Add compiler buildtins tests to Spring. Previously included in Leap CI.
Note:end

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.

4 participants