diff options
author | toni <matzeton@googlemail.com> | 2016-07-27 12:21:11 +0200 |
---|---|---|
committer | toni <matzeton@googlemail.com> | 2016-07-27 12:21:11 +0200 |
commit | 4424d17b812e1159552d9217cc491e4947d42424 (patch) | |
tree | 5d9205c421838772f4ee1d380308ffd8af30a14f /tests | |
parent | b2c9fc568be1b8edbd2a1b7c19448fe987263bca (diff) |
fixed build error
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ipctest.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/ipctest.c b/tests/ipctest.c index bd7c620..f84f390 100644 --- a/tests/ipctest.c +++ b/tests/ipctest.c @@ -19,26 +19,26 @@ int main(int argc, char **argv) { ret = ui_ipc_init(1); - ret |= ui_ipc_sempost(SEM_BS); - ret |= ui_ipc_sempost(SEM_BS); + ret |= ui_ipc_sempost(SEM_UI); + ret |= ui_ipc_sempost(SEM_UI); if ( (child = fork()) == 0 ) { - printf("child: wait (%d)\n", ui_ipc_getvalue(SEM_BS)); - ret |= ui_ipc_semtrywait(SEM_BS); - ret |= ui_ipc_semtrywait(SEM_BS); - ret |= ui_ipc_semwait(SEM_BS); - printf("child: done (%d)\n", ui_ipc_getvalue(SEM_BS)); - ret |= ui_ipc_sempost(SEM_BS); + printf("child: wait (%d)\n", ui_ipc_getvalue(SEM_UI)); + ret |= ui_ipc_semtrywait(SEM_UI); + ret |= ui_ipc_semtrywait(SEM_UI); + ret |= ui_ipc_semwait(SEM_UI); + printf("child: done (%d)\n", ui_ipc_getvalue(SEM_UI)); + ret |= ui_ipc_sempost(SEM_UI); exit( (ret == 0 ? 0 : ret) ); } else if (child > 0) { usleep(100000); - printf("parent: post (%d)\n", ui_ipc_getvalue(SEM_BS)); - ui_ipc_sempost(SEM_BS); + printf("parent: post (%d)\n", ui_ipc_getvalue(SEM_UI)); + ui_ipc_sempost(SEM_UI); } else { ret |= 1; } wait(&c_status); - ret |= ui_ipc_semtrywait(SEM_BS); + ret |= ui_ipc_semtrywait(SEM_UI); ui_ipc_free(1); exit( c_status | ret ); } |