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

Add test for #18908 #19377

Merged
merged 1 commit into from
Dec 11, 2014
Merged

Conversation

tbu-
Copy link
Contributor

@tbu- tbu- commented Nov 28, 2014

No description provided.

@tbu-
Copy link
Contributor Author

tbu- commented Nov 28, 2014

#18908

@gankro Here's your test, sorry for the delay.

(your comment)

@tbu-
Copy link
Contributor Author

tbu- commented Nov 28, 2014

r+? @alexcrichton

@Gankra
Copy link
Contributor

Gankra commented Nov 28, 2014

Thanks for remembering! ❤️

}
}
const NUM_ELEMENTS: uint = 2;
static in_test: AtomicBool = atomic::INIT_ATOMIC_BOOL;
Copy link
Contributor

Choose a reason for hiding this comment

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

What does in_test achieve?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That the test isn't accidently run twice in parallel.

Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting. Is that an actual concern for our teating framework?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure, maybe someone who knows it could comment on it?

Copy link
Member

Choose a reason for hiding this comment

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

Currently the testing framework guarantees that a test is only run once for each test run, so it's probably ok to remove this. We've got a good number of tests elsewhere that aren't threadsafe to run in parallel either (use of static mut globals similarly).

@tbu- tbu- force-pushed the pr_mapinplace_fixzerosized_test branch from 3cbddd2 to 807066f Compare November 28, 2014 23:44
bors added a commit that referenced this pull request Dec 11, 2014
@bors bors closed this Dec 11, 2014
@bors bors merged commit 807066f into rust-lang:master Dec 11, 2014
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.

6 participants