diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-01 20:07:56 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-01 20:07:56 -0800 |
| commit | 5402f3277115d043158b1585a4bb67fc67fa0155 (patch) | |
| tree | bf75b380fae017a3e9e98f38ebc89cd8eab2c80d /tests | |
| parent | 84e714b548fe7b4c1c3a358d5d4b206f50dccf0f (diff) | |
| download | nng-5402f3277115d043158b1585a4bb67fc67fa0155.tar.gz nng-5402f3277115d043158b1585a4bb67fc67fa0155.tar.bz2 nng-5402f3277115d043158b1585a4bb67fc67fa0155.zip | |
Stack related fixes for valgrind platform test.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/platform.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/platform.c b/tests/platform.c index e252fa05..aa14ffeb 100644 --- a/tests/platform.c +++ b/tests/platform.c @@ -101,7 +101,7 @@ TestMain("Platform Operations", { }) }) Convey("Mutexes work", { - nni_mtx mx; + static nni_mtx mx; int rv; rv = nni_mtx_init(&mx); @@ -129,7 +129,7 @@ TestMain("Platform Operations", { }) Convey("Threads work", { - nni_thr thr; + static nni_thr thr; int val = 0; int rv; @@ -148,8 +148,8 @@ TestMain("Platform Operations", { }) }) Convey("Condition variables work", { - struct notifyarg arg; - nni_thr thr; + static struct notifyarg arg; + static nni_thr thr; So(nni_mtx_init(&arg.mx) == 0); So(nni_cv_init(&arg.cv, &arg.mx) == 0); |
