Eviscerate README.macos to match the state of the world
[p5sagit/p5-mst-13.2.git] / dist / Thread-Semaphore / t / 03_nothreads.t
CommitLineData
0a7dbd1b 1use strict;
2use warnings;
3
0a7dbd1b 4use Test::More 'tests' => 4;
5
6use Thread::Semaphore;
7
8my $s = Thread::Semaphore->new();
9is($$s, 1, 'Non-threaded semaphore');
10$s->down();
11is($$s, 0, 'Non-threaded semaphore');
12$s->up(2);
13is($$s, 2, 'Non-threaded semaphore');
14$s->down();
15is($$s, 1, 'Non-threaded semaphore');
16
1090e072 17exit(0);
18
0a7dbd1b 19# EOF