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

naming a test `memset` causes unexpected behaviour #1263

Closed
tiehuis opened this Issue Jul 19, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@tiehuis
Member

tiehuis commented Jul 19, 2018

test "example1" {
    @import("std").debug.warn("abc\n");
}

test "example2" {
    @import("std").debug.warn("def\n");
}

This prints

Test 1/2 example1...abc
OK
Test 2/2 example2...def
OK

Naming a test memset however causes the the memset test to run multiple times for each test.

test "example1" {
    @import("std").debug.warn("abc\n");
}

test "memset" {
    @import("std").debug.warn("def\n");
}
Test def
1/def
2 example1...abc
OK
Test def
2/def
2 memset...def
OK

Workaround

Don't name a test memset.

@tiehuis tiehuis added the bug label Jul 19, 2018

@andrewrk andrewrk added this to the 0.3.0 milestone Jul 19, 2018

@andrewrk andrewrk closed this in a9f0681 Jul 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment